Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pushing same project to two different Git repositories

Tags:

git

eclipse

My project is required to be placed at two different git repositories as per client's requirement. Is there any way using which I can do this through eclipse or command line? Thanks.

like image 685
Richa Sharma Avatar asked Nov 23 '25 12:11

Richa Sharma


1 Answers

You can add anothr remote to your actual one. So you would have an "origin" which is conventionally the name you use and an originClient

git remote add originClient [email protected]:User/UserRepo.git

git push -u originClient yourBranchName

like image 100
Giovanni Panasiti Avatar answered Nov 25 '25 03:11

Giovanni Panasiti



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!