Helpful Git flags

· rrees's blog


--no-verify on git commit: prevents commit checks if you have flaky commit hooks

--amend on git commit: allows you to rewrite the last commit, helpful if you realise you forgot to add a file or messed up the commit message

--force-with-lease on git push: the safe way to force push after a rebase or commit amendment, it will only push if the current state of the destination is as expected, if someone else commits to the destination before your changes it will fail