Languages
[Edit]
EN

git push branch with force to override remote changes

4 points
Created by:
AnnLen
13390

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 

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