Hacker News new | past | comments | ask | show | jobs | submit login

Git push's `--force-with-lease` option does essentially this.

(Honestly, they should rename `--force-with-lease` to just `--force`, and rename the old `--force` behaviour to `--force-with-extreme-prejudice` or something like that. Basically make the new behaviour the default `--force` behaviour.)






`--force-unsafe`

That would be the saner name, yes.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: