Re: Now what: multiple HEAD refs
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Dec 15, 2005, 15:40 UTC
- Message-ID
- <Pine.LNX.4.63.0512151638260.3104@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <81b0412b0512150654o49e1edacu67b88df6347736d2@mail.gmail.com>
Hi,
On Thu, 15 Dec 2005, Alex Riesen wrote:
> > not make any sense to me; I am puzzled ... what are you trying > > to achieve with "git pull . ref1:HEAD"? > > merge branch ref1 into current. Is that not a correct refspec?
No, it is not correct. To pull means that you want to merge the fetched ref (your ref1), and store the result in the current branch.
But if you write "ref1:HEAD", you pretend that you want to fast-forward the local branch "HEAD" to ref1, and get an error if it is not forwardable.
In your case, I guess, "git pull ref1" is what you meant.
Hth, Dscho