3 ms·
Force push should be “with lease” by default. Then force pushing is not dangerous at all.
by frizlab 2y ago
Force push should be “with lease” by default. Then force pushing is not dangerous at all.
- keybored 2y agoIt’s still dangerous if you have fetched recently. You also might want `--force-if-includes`. (And then I don’t think there are any more “force” flags left to worry about…!) https://stackoverflow.com/questions/65837109/when-should-i-use-git-push-force-if-includes/71414529#71414529 https://stackoverflow.com/questions/65837109/when-should-i-u...
- hughesjj 2y agoI really wish there was a global setting to turn this on by default/in config but afaik for backwards compatibility reasons Linus doesn't want to do that so the advice I've heard is to just configure it as an alias Personally, I'm lazy and just always have it in recent substring match history in the shell