Thread (4 messages) 4 messages, 3 authors, 2016-06-15

Re: Now what: multiple HEAD refs

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:42:15

Hi,

On Thu, 15 Dec 2005, Alex Riesen wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help