Re: [RFD] Making "git push [--force/--delete]" safer?
- From
Johan Herland <johan@herland.net>
- Date
- Jul 3, 2013, 10:11 UTC
- Message-ID
- <CALKQrgfQhVVC1NxizjCQdDmNfihfyEgypYddWB0CMTPqW9Mxtg@mail.gmail.com>
- In-Reply-To
- <CAF5DW8++sc2VYmdJEjbD_ue_wtDFj21vcyFzNWU0M+rAm2X0sQ@mail.gmail.com>
On Wed, Jul 3, 2013 at 12:06 PM, Jonathan del Strother <maillist@steelskies.com> wrote:
> I'm struggling to think of instances where I wouldn't want this > CAS-like behaviour. Wouldn't it be better to make it the default when > pushing, and allowing the current behaviour with "git push > --blind-force" or something?
I believe I agree with you. I guess the reason this hasn't come up before is that by far most of the pushes we do are either fast-forwarding, or pushing into a non-shared repo (e.g. my own public repo), and this safety only really applies when we're forcing a non-fast-forward push into a shared repo...
...Johan
-- Johan Herland, <johan@herland.net> www.herland.net