3 ms·
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 branc
by _ikke_ 11y ago
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.
- rectangletangle 11y agoYou can just alias it in your bash profile, if it's too much to type. alias gitpushf='git push --force-with-lease'
- Peaker 11y agoJust make an alias pushf = push --force-with-lease, and it becomes even less to type! :-)