'Git Commits view not showing in VSCode Source Control panel

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


Solution 1:[1]

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

Solution 2:[2]

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???

Solution 3:[3]

It was down to not having Gitlens enabled in the workspace ?

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Hamza Abdullah
Solution 2 Vash Juan
Solution 3 blackhaj