Reputation: 7007
I have just hired a developer to help me with a project. He created a brach of the project and added it to the github repository. I want to now add that branch to vs code. That is to say, I have the main branch synced with vs code, but not the new branch. I am wondering how I can add that new branch to my project folder on vs code.
Thanks.
Upvotes: 0
Views: 424
Reputation: 1258
Fetch all remotes:
git fetch --all
Switch the branch:
git checkout <branch>
Upvotes: 1