How do I properly force a Git push?

Just do: or if you have a specific repo: This will delete your previous commit(s) and push your current one. It may not be proper, but if anyone stumbles upon this page, thought they might want a simple solution… Short flag Also note that -f is short for –force, so will also work.