Re: git pull behavior changed?

3 messages, 3 authors, 2016-06-15 · open the first message on its own page

Re: git pull behavior changed?

From: Randal L. Schwartz <hidden>
Date: 2016-06-15 22:48:41

quoted
quoted
quoted
quoted
"Aghiles" == Aghiles  [off-list ref] writes:

Aghiles> Using :
Aghiles>   git branch test
Aghiles>   git checkout test
Aghiles>   git pull origin HEAD

I do this:

    git checkout -b test origin/test
    ...
    git pull

And it seems to work.  It even announces that my test is tracking origin/test.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
[off-list ref] <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion

Re: git pull behavior changed?

From: Aghiles <hidden>
Date: 2016-06-15 22:48:41

On Wed, Apr 21, 2010, Randal L. Schwartz  wrote:
   git checkout -b test origin/test
   ...
   git pull

And it seems to work.  It even announces that my test is tracking origin/test.
Yes that syntax works too (although I use origin/master since I am tracking
the main branch and not the remote "test" branch). Thank you very much.

The message announcing the tracked branch is a nice touch.

  -- aghiles

Re: git pull behavior changed?

From: Petr Baudis <hidden>
Date: 2016-06-15 22:48:41

On Wed, Apr 21, 2010 at 07:57:17PM -0400, Aghiles wrote:
On Wed, Apr 21, 2010, Randal L. Schwartz  wrote:
quoted
   git checkout -b test origin/test
   ...
   git pull

And it seems to work.  It even announces that my test is tracking origin/test.
Yes that syntax works too (although I use origin/master since I am tracking
the main branch and not the remote "test" branch). Thank you very much.
So, do I understand it right that there is still no canonical syntax to
check out local branch tracking a remote one of the same name, without
spelling out the branch name twice?

-- 
				Petr "Pasky" Baudis
http://pasky.or.cz/ | "Ars longa, vita brevis." -- Hippocrates
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help