Git Pro Tips
Force With Lease Alias
🗓️ Published: 4/15/2026 Originally on X: 4/28/2022

It is much easier to type git push --force than git push --force-with-lease, which makes the unsafe version tempting in a hurry.
Make the safer command shorter:
git config --global alias.enforce "push --force-with-lease"
Then use:
git enforce