Moshe
Moshe

Reputation: 7007

Add Github Branch to VS Code

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

Answers (2)

Maksym Bezruchko
Maksym Bezruchko

Reputation: 1258

Fetch all remotes:

git fetch --all

Switch the branch:

git checkout <branch>

Upvotes: 1

Gabriel Castiglioni
Gabriel Castiglioni

Reputation: 125

You can do:

git checkout name_of_your_branch

Upvotes: 1

Related Questions