Re:How to undo almost anything with Git
by _ikke_ on Monday June 08, 2015 @04:00PM
(#9681951)
I always recommend people to use `git push --force-with-lease`. It's more to type, but it verifies if the remote branch is the same as the remote tracking branch, so you don't accidentally rewrite branches someone else has pushed to.
[ Parent
| on HN ]
Re:How to undo almost anything with Git
by rectangletangle on Tuesday June 09, 2015 @05:10AM
(#9684732)
You can just alias it in your bash profile, if it's too much to type.
alias gitpushf='git push --force-with-lease'