Git Commits view not showing in VSCode Source Control panel

Viewed 2494

Problem:

When I open the Source Control panel in VScode, normally I am able to see any diffs and at the bottom of the panel I can open/close various tabs such as Commits, Branches, Remotes etc. These tabs have all disappeared for a specific repo.

Here is how it should look:

  • The tabs are available at the bottom of the panel
  • I am able to select/unselect which tabs to show from the three dot menu

However, they are not showing on this specific repo. Here's how it looks on the repo in question:

  1. I can't see the tabs at the bottom of the panel
  2. I am unable to show/hide them from the three dot menu

Notes:

  • I have checked VScode settings and both the user and workspace settings are exactly the same
  • A git repo exists in this directory (the tabs used to show fine)
  • I do not want to do this from the command line
5 Answers

For me the issue was I hadn't setup the extension properly, go to the extension's page -> Settings -> Get Started -> Open Quick Setup -> Views -> Source Control Layout

Step By Step Image

It was down to not having Gitlens enabled in the workspace

Not sure, but 1) check your remote repositories to ensure they look normal. 2) Have any extensions changed recently (GitLens, Git History, etc.), or 3) Maybe the .git directory got moved/hosed somehow???

When the GitLens extension is disabled, it shows only "Changes". You can go to, Extentions > Settings wheel of GitLens > Enable.

It will enable (COMMITS, FILE HISTORY, BRANCHES, REMOTE, STASHES) in Source Control.

For WSL users, you have to install the extensions INSIDE WSL, just go to the extensions tab and click "Install in WSL" for your extensions

Related