Hacker News new | ask | show | jobs
by frizlab 610 days ago
Force push should be “with lease” by default. Then force pushing is not dangerous at all.
1 comments

It’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-u...

I 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