Re: git push (mis ?)behavior
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 3, 2007, 15:27 UTC
- Message-ID
- <Pine.LNX.4.64.0710031550490.28395@racer.site>
- In-Reply-To
- <20071003104943.GA3017@diana.vm.bytemark.co.uk>
Hi,
On Wed, 3 Oct 2007, Karl Hasselstr?m wrote:
Show 5 quoted lines
> 2. "push all branches" is the default, but the user intended to push > only the current branch. She ends up pushing a superset of what > she wanted, which is not easily fixed if she can't be sure that > no one else has pulled from the public repo before she notices > what's happened.
But that is not the default. Not at all.
The default is to push the refs which the remote and the local side have _in common_.
Maybe we should initialise the "remote.origin.push" variable to "completely-bogus-branchname" when you "git init --im-a-newbie"?
Ciao, Dscho