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:
git remote add github firstname.lastname@example.org:namespace/project.git git remote update git checkout development git pull git pull . master git push github development