I have a repository set up on a server running Git, the repository has an authoritive / bare repository connected to it. If I then set up a local version of the repository on my development machine with:
git clone //ip-address/projectfolder/project.git
I can view all of the code without any problems.
However, when I create a branch on the Git server with git checkout -b v1_0_2_1 I can’t see the new branch on my development machine. I’ve tried running git remote update
and when I type git branch -a I can only see:
* master
remote/origin/HEAD -> origin/master
remotes/origin/master
Where am I going wrong?
Try
This will get all branches from the remote repo and store them under remotes/origin/branchname
example :
Here I got the new work from my team mates, each works on their own branch, which corresponds to a ticket.
And here are the branches in the local repo.