Reputation: 40663
I'm slowly getting the hang of this GIT but stuck on this one...
Our workflow is to create a branch using the 'create branch' feature in JIRA. Go to the story, select 'create branch' which then takes us over to BitBucket where we can create the branch. I then see the new branch along with all of our other branches in bitbucket.
However, when I go to the command line on my machine to checkout the new branch, it can't find it. Using 'git branch -r' pulls the full list of branches I see in BitBucket...but not the one I just created.
Am I missing a key step here?
Upvotes: 1
Views: 3309
Reputation: 100543
You can do a git fetch
to retrieve all references from the remote.
git branch -a
lists all available branches.
Upvotes: 6