AI engineering glossary · Command line Git
What is force push?
Force push: A push that overwrites the remote branch with your local version even when that discards commits others may have. It is needed after rewriting history, and the safer option --force-with-lease refuses if the remote changed unexpectedly.
Force push: an example
After rebasing your own feature branch, git push --force-with-lease updates the remote copy.
Related terms
More Command line Git terms
Where you learn it
Force push is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.