Anthony Beckett

Software Engineer, Videographer and Web Designer

Force a Git Push when reverting changes

To make git to push changes even when your branch is behind (i.e. your remote branch has more recent changes) you can force git to push your changes. In this case the branch is called master:

git push origin master --force

You can also reference a particular repository like so:

git push https://git… --force

Next Post

Previous Post

Leave a Reply

© 2021 Anthony Beckett

Theme by Anders Norén