Languages
[Edit]
EN

git push branch with force to override remote changes

4 points
Created by:
Payne
654

Quick solution:

git push origin --force

or

git push force

or

git push -f

-f is just shortcut from --force 

 

This command will push local branch to remote repository and override remote branch with local changes.

See also

  1. Git - pull with force to override / reset local changes in history 
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Git

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join