Sunday, April 30, 2017

Overriding a remote branch in git

If you need to override a remote branch with local changes, then you can use:

git push -f


This is very useful whenever you need to discard the changes that you have made and start over.

No comments:

Post a Comment

Overriding a remote branch in git

If you need to override a remote branch with local changes, then you can use: git push -f This is very useful whenever you need to disc...