From: Jeff King Date: Mon, 16 Feb 2009 00:04:43 GMT Subject: disallowing push to currently checked-out branch 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: > > * 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