Skip to content

Instantly share code, notes, and snippets.

@teeyo
Created June 8, 2017 10:19
Show Gist options
  • Save teeyo/95d12110f93e1a45f5594b9a9b34b812 to your computer and use it in GitHub Desktop.
Save teeyo/95d12110f93e1a45f5594b9a9b34b812 to your computer and use it in GitHub Desktop.
Synchronize push on Bitbucket/Github and Drupal Cloud
# Edit the .git/config file, and add as many pushURL as you like, this way whenever you do a git push you'll be
# pushing to all the URLs yous specified in the pushURL parameter. In my case I use it to push to BitBucket and
# Drupal Cloud at the same time.
[remote "origin"]
url = https://teeyo@bitbucket.org/teeyo/repository.git
fetch = +refs/heads/*:refs/remotes/origin/*
# add your pushURL as shown below
pushURL = https://teeyo@bitbucket.org/teeyo/repository.git
pushURL = teeyo@git.drupal.org:project/repository.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment