Error message

Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in menu_set_active_trail() (line 2405 of /home/antojose/public_html/includes/menu.inc).

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

Add new comment

randomness