Skip to content

Instantly share code, notes, and snippets.

@netravnen
Last active November 27, 2017 05:41
Show Gist options
  • Save netravnen/f4624168829fd950f042c65c68efa7d9 to your computer and use it in GitHub Desktop.
Save netravnen/f4624168829fd950f042c65c68efa7d9 to your computer and use it in GitHub Desktop.
When doing 'git push origin' on current branch, will push branch to all specified remotes
[remote "gitlab"]
url = https://gitlab.com/username/repository-name.git
fetch = +refs/heads/*:refs/remotes/gitlab/*
[remote "github"]
url = https://github.com/username/repository-name.git
fetch = +refs/heads/*:refs/remotes/github/*
[remote "bitbucket"]
url = https://bitbucket.org/username/repository-name.git
fetch = +refs/heads/*:refs/remotes/bitbucket/*
[remote "origin"]
url = https://gitlab.com/username/repository-name.git
url = https://github.com/username/repository-name.git
url = https://bitbucket.org/username/repository-name.git
[branch "master"]
remote = github
merge = refs/heads/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment