Hacker Newsnew | past | comments | ask | show | jobs | submit | swede's commentslogin

Public Service Announcement

You can have multiple remotes for your Git repositories, one of them (Github) being down should not affect your work since you can coordinate a new one with your team in the manner described above.


Yep! I usually setup a mirror at bitbucket and set my local to push to both github and bitbucket and only pull from github. It worked well when github was down and I needed a branch from a remote developer.


Can't reply to the child to this comment, so I'll add this as a new child:

Here's how to set multiple remotes. (See answer 2). http://stackoverflow.com/questions/849308/pull-push-from-mul...


Nice. I didn't know you could push to multiple remotes (in the same command). Could you give me an example? Thanks!


The reply right under mine seems to be a reply to you. It has a stackoverflow link that shows you how to setup two URLs in your origin remote.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: