Re: [RFD] Making "git push [--force/--delete]" safer?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 3, 2013, 19:53 UTC
- Message-ID
- <7vmwq3e7xy.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <51D413BA.6080709@viscovery.net>
Johannes Sixt <j.sixt@viscovery.net> writes:
> I don't think that is necessary. We already have *two* options to > force-push a ref: the + in front of refspec, and --force.
They mean exactly the same thing; the only difference being that "+" prefix is per target ref, while "--force" covers everything, acting as a mere short-hand to add "+" to everything you push.
If the "--lockref/--update-only-if-ref-is-still-there" option defeats "--force", it should defeat "+src:dst" exactly the same way.