Visual Studio Code doesn't show local branch

Viewed 1551

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?

2 Answers

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

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.

Related