Re: Tools that do an automatic fetch defeat "git push --force-with-lease"
- Date: Sat, 8 Apr 2017 17:03:06 +0200
- From: lists@xxxxxxxxxxxxxxxx (Stefan Haller)
- Subject: 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.