Husein Behboodi Rad Husein Behboodi Rad - 3 months ago 7
Git Question

How to connect one code into two git repositories?

I have an iOS project in my Xcode. I want to push my changes into two separate git repositories. (One is repository in our local network and the other one is a repository in my servers on Internet). Is there any options to connect the code to two repositories?

Answer

Just add another remote repo - see here

git remote add otherrepo https://github.com/blabla/blub42  

Then you can push to it

git push otherrepo master
Comments