Re: (no subject)
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Nov 11, 2007, 15:22 UTC
- Message-ID
- <Pine.LNX.4.64.0711111520260.4362@racer.site>
- In-Reply-To
- <Pine.LNX.4.64.0711111359590.9401@castor.milkiway.cos>
Hi,
On Sun, 11 Nov 2007, Michael Dressel wrote:
Show 7 quoted lines
> > >Michael Dressel wrote: > >Ok nice. Another thing is that git-push will push all the tracking > >branches in refs/remotes/origin. > > I learned that I only have to edit the .git/config file to avoid that > git-push pushes everything.
It is documented that you can use "git push origin <branchname>".
> [remote "origin1"] > url = /home/repo/src > fetch = +refs/heads/master:refs/remotes/origin/master > push = +refs/heads/master:refs/heads/master
With "push", it is not necessary to specify the ":<target>".
Also, if "master" is unambiguous, you can write just "master" instead of "refs/heads/master".
Furthermore, I suggest not forcing (that's what "+" does) the push, since it is quite possible that you push something old in the wrong direction.
Hth, Dscho