disallowing push to currently checked-out branch
- From
Jeff King <peff@peff.net>
- Date
- Feb 16, 2009, 00:04 UTC
- Message-ID
- <20090216000443.GB3503@coredump.intra.peff.net>
- In-Reply-To
- <20090215232013.GA11543@zakalwe.fi>
On Mon, Feb 16, 2009 at 01:20:13AM +0200, Heikki Orsila wrote:
Show 12 quoted lines
> > * git-push to update the checked out branch will be refused by default > > > > Make "git push" into a repository to update the branch that is checked > > out fail by default. > > > > http://thread.gmane.org/gmane.comp.version-control.git/107758/focus=108007 > > If this is implemented, it shouldn't, in my opinion, be a default > setting. I regularly push to checkout repos when I'm doing cross machine > development. However, I could live with a configurable setting as > proposed in the given URL. I think Git should not be too cautious about > following users instructions. The user knows what is best for him/her ;)
It is already implemented; the proposal is about setting the default. The plans for 1.6.2 are already to issue a warning and ask the user to set the config variable to shut it up.
-Peff