I follow the instructions on unfuddle exactly and no matter what I only can the master back. Pushing branches works fine, but not fetching.
Does anyone have any advice? Thanks.
I follow the instructions on unfuddle exactly and no matter what I only can the master back. Pushing branches works fine, but not fetching.
Does anyone have any advice? Thanks.
When you fetch a remote, the branches are in your repository, but as remote branches. git branch
lists only local branches, so it doesn't appear.
You must make the branch local with git checkout -t origin/mybranch
(this will also check it out in your working copy), or git branch mybranch origin/mybranch
to create it without checkout.
When you list branches you can do one of 3 things:
git branch
will show the local branches (only one will be created after a clone)
git branch -r
will show you the remote tracking branches. This is what you were interested in.
git branch -a
will show you all the branches (local and remote tracking)
To get a remote tracking branch to be tracked by a local branch,
git checkout -t origin/branchname
You may not need to do this if, for example, you just want to merge a remote branch to your current one.
git merge origin/somebranch
will work just fine.