Web lists-archives.com

Re: Tools that do an automatic fetch defeat "git push --force-with-lease"

Jeff King <peff@xxxxxxxx> wrote:

> I think Matt's point is just that the default, to use origin/branch, is
> unsafe. It's convenient when you don't have extra fetches, but that
> convenience may not be worth the potential surprise.

I don't think "surprise" is the right word here. The point of
--force-with-lease is to provide a guarantee, so if you can't trust the
guarantee, it makes the feature rather pointless.

Stefan Haller
Berlin, Germany