Need to force push over a git branch and ensure no one has pushed since you last synced? --force-with-lease will reject if your local remote is out of sync, a canary that you are about to erase somebody else's work
-
-
Adding that to my global gitconfig
-
can't have a config for it, but can add it to my alias
-
alias gpf='git push -f --force-with-lease origin HEAD'
-
you want only the `--force-with-lease` flag
- End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
