Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: remote branch checkout issue, why its *(no branch)

From: Björn Steinbrink <hidden>
Date: 2016-06-15 22:45:42

On 2008.11.28 14:32:56 -0800, Jakub Narebski wrote:
What you can do is to create _local_ branch, closely tied to
remote-tracking branch 'origin/B1', by using:

  $ git branch -b B1 --track origin/B1
You mixed up checkout and branch there ;-)

It's either

git branch B1 origin/B1 # Just create a branch B1

or

git checkout -b B1 origin/B1 # Create and checkout B1

I omitted the "--track" as, by default, it is implied when you create a
new branch from a remote tracking branch.

Björn
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help