A classic example of a bad UX for a cli:

git push --force

git push --force-with-lease

The safer option has a longer command that start with the dangerous one, c'mon why?!

Reply to this note

Please Login to reply.

Discussion

did the command simply come in a later version so force was already in use?

Probably, but it is not really an excuse.

They could have just added a prefix, for example --safe-force, let people migrate and eventuyally later deprecate --force for something different. Or first deprecate --force and steal it (it is conservative and less dangerous, so should cause no loss of data).

thx 😁 I had also been looking for the commit

because no pull req

TIL I need to use a new git alias: pushf = push --force-with-lease