PeteH32
PeteH32

Reputation: 871

How can I view the Git history for a folder, in Visual Studio Code?

Visual Studio Code provides multiple ways to view git history for a file, but there seems to be no way to see the git history for a folder.

VS Code has the new "Timeline view", introduced in March 2020, but it only supports git history for a file, not a folder.

Upvotes: 9

Views: 13500

Answers (1)

Delapouite
Delapouite

Reputation: 10157

Have a look at the recent GitLens version (11.4.0, released on 2021-04-08) : https://github.com/eamodio/vscode-gitlens/blob/main/CHANGELOG.md

This VSCode extension has just introduced a way to display the git history of a folder. Right click on a folder in the file explorer tree, select Open Folder History and you should then see the expected log in a dedicated view.

enter image description here

Upvotes: 10

Related Questions