Ankur Agarwal
Ankur Agarwal

Reputation: 24758

Correct way to use git push -f

$ git branch

 master
*branch1

$ git push -f

And I over wrote origin/master with local stale master. What is the correct way to use git push -f ?

Upvotes: 0

Views: 45

Answers (1)

jmdeldin
jmdeldin

Reputation: 5404

git push -f origin branch1

This will force push your branch1 and not master.

Upvotes: 1

Related Questions