Thread (3 messages) 3 messages, 3 authors, 2021-08-24

Re: Proposalö git push -F

flat view

From: Junio C Hamano <hidden>
Date: 2021-03-03 06:59:57

XonqNopp [off-list ref] writes:
I have discovered some months ago that it is more safe to force a push with
git push --force-with-lease

But since then I keep wondering: why is this not the default?
Because the form "--force-with-lease=<this-exact-commit>" is a
strict improvement over "--force", but the lazy "guess where the
other end should be" form, i.e. "--force-with-lease" alone, is worse
than "--force" in that it gives users false sense of security
without offering the safety the "lease" mechanism gives.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help