How to add multiple remote servers to a Git repository so that it can push to both GitHub and GitLab
I had this particular case of adding a git repository to multiple servers - one, GitHub, and the other running GitLab.
The code was already being pushed to my GitLab server, when a client wanted the code to be pushed to the development branch of a project in his GitHub account.
This is what I did to get it working:
(Ref.: http://stackoverflow.com/questions/849308/pull-push-from-multiple-remote...)
git remote add github git@github.com:namespace/project.git git remote update git checkout development git pull git pull . master git push github development
- 19451 reads
Add new comment