Julius
Julius

Reputation: 509

Visual Studio Code doesn't show local branch

VS Code 1.52.1 on Mac

I want to checkout to a local branch dev using the integrated SCM, but the branch name doesn't show up in the list.

Cli shows all branches correctly:

% git branch -a

  dev
* master
  remotes/origin/dev
  remotes/origin/master

But in VS Code >Git: Checkout to... shows only:

enter image description here

Where's the local dev? Am I doing something wrong?

Upvotes: 2

Views: 5528

Answers (2)

Lucas Aimaretto
Lucas Aimaretto

Reputation: 1489

I had the same issue. I only clicked in the update button, and now I get to see the local branches.

enter image description here

Upvotes: 1

Radu Bartan
Radu Bartan

Reputation: 563

I had the same issue. This is what I did. I hope it helps someone.

  1. made the SOURCE CONTROL REPOSITORIES tab show: enter image description here

  2. I am assuming you would like to see your local branch name here - rather than master. enter image description here

  3. This is what worked for me: enter image description here


If this answer does not help - please let me know in the comments so I can edit or remove it.

Upvotes: 0

Related Questions