Skip to content

Instantly share code, notes, and snippets.

@Gedrovits
Last active December 17, 2015 08:49
Show Gist options
  • Save Gedrovits/5583049 to your computer and use it in GitHub Desktop.
Save Gedrovits/5583049 to your computer and use it in GitHub Desktop.
GitHub configuration to push same repository into different services. Just change according to your needs your repository .git/config file.
# GitHub configuration to push same repository into different services
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
# git push all
[remote "all"]
url = git@github.com:<login>/<repository>.git
url = git@bitbucket.org:<login>/<repository>.git
url = git@heroku.com:<login>/<repository>.git
url = ssh://<id>@<app-name>-<namespace>.rhcloud.com/~/git/<app-name>.git/
# git push origin
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:<login>/<repository>.git
# git push bitbucket
[remote "bitbucket"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@bitbucket.org:<login>/<repository>.git
# git push heroku
[remote "heroku"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@heroku.com:<login>/<repository>.git
# git push openshift
[remote "openshift"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = ssh://<id>@<app-name>-<namespace>.rhcloud.com/~/git/<app-name>.git/
[branch "master"]
remote = origin
merge = refs/heads/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment