Skip to contentSkip to conversation

Checking out a branch?

DISCUSSION Ulf Samuelsson 1 participant 2 messages Aug 11, 2009

lore
Share & tools
lore
#0 lore raw

I am a bit confused right now with the branches.

I got the tree using
git clone [email protected]:openembedded

I then want to create a local branch using
"git checkout -b local origin/remote"

"git branch -a" tells me there is

* org.openembedded.dev
origin/HEAD
...
origin/org.openembedded.angstrom-2007.12-stable
origin/org.openembedded.dev
origin/org.openembedded.documentation
origin/org.openembedded.stable
origin/origin/org.openembedded.dev
...

which one should I use?

Signature · 2 lines
Best Regards
Ulf Samuelsson
#1 lore raw

Ulf Samuelsson skrev:

Quoted 20 lines

I am a bit confused right now with the branches.

I got the tree using
git clone [email protected]:openembedded

I then want to create a local branch using
"git checkout -b local origin/remote"

"git branch -a" tells me there is

* org.openembedded.dev
origin/HEAD
...
origin/org.openembedded.angstrom-2007.12-stable
origin/org.openembedded.dev
origin/org.openembedded.documentation
origin/org.openembedded.stable
origin/origin/org.openembedded.dev
...

Quoted 3 lines

which one should I use?

I found the explanation in the GitPhraseBook somewhat lacking so I added a new, more complete example
"Example 3: Working with a private branch"

Feel free to comment!

Signature · 2 lines
Best Regards
Ulf Samuelsson