Reputation: 2422
I have one repository repo1 which is synced with remote1. I have 300 commits on it till date.
I created another repository repo2 on remote2 and has 4 commits till date. These are completely different commits.
I want to use repo1 and push changes to both remote1 and remote2. How can I do that?
When I push to remote2, it should overwrite all the commits from remote1.
Upvotes: 1
Views: 131
Reputation: 2167
Besically run
git push remote1 master
git push remote2 master
signature
git push <remote repository> <branch to push>
if you run into an error due to histories being different, you can force push using following alternation
git push -f remote1 master
git push -f remote2 master
Note: -f
is for force
Upvotes: 1