Force push with --lease for safety - 06-10-20

Just found out, via tweet, from the insightful joshdholtz that there is a safer alternative to git push --force

Time to update my aliases:

alias gs="gst"
-alias gpf="gp --force"
+alias gpf="gp --force-with-lease"
alias gdc="gd --cached"

I use zsh shell’s git plugin that is why you see “gst” for git status and “gp” for git push. Highly recommend it

Source:

\- [ git ]