How can I view the Git history in Visual Studio Code?

GitVisual Studio-CodeIdeGit History-Graph

Git Problem Overview


I can execute various Git commands from Visual Studio Code, however I couldn't find a way to visualize the history.

Git Solutions


Solution 1 - Git

I recommend you this repository, https://github.com/DonJayamanne/gitHistoryVSCode

Git History Git History

It does exactly what you need and has these features:

  • View the details of a commit, such as author name, email, date, committer name, email, date and comments.
  • View a previous copy of the file or compare it against the local workspace version or a previous version.
  • View the changes to the active line in the editor (Git Blame).
  • Configure the information displayed in the list
  • Use keyboard shortcuts to view history of a file or line
  • View the Git log (along with details of a commit, such as author name, email, comments and file changes).

Solution 2 - Git

You won't need a plugin to see commit history with Visual Studio Code 1.44 or more.

> ## Timeline view > > This is a unified view for visualizing time-series events (for example, Git commits, file saves, test runs, etc.) for a file. The Timeline view automatically updates showing the timeline for the currently active editor, by default. You can control this default behavior by toggling the eye icon in the view toolbar. Also, similar to other views, the Timeline view supports find or filter as you type. > >The Timeline view is collapsed by default at the bottom of the File Explorer. Selecting the Timeline sash will expand the Timeline view. > >enter image description here > > [...] > > Here is the Timeline view in action: > > enter image description here

Solution 3 - Git

[GitLens][1] has a nice Git history browser. Install GitLens from the extensions marketplace, and then run "Show GitLens Explorer" from the command palette.

[1]: https://gitlens.amod.io/ "GitLens"

Solution 4 - Git

It is evident to me that GitLens is the most popular extension for Git history.

enter image description here

What I like the most it can provide you side annotations when some line has been changed the last time and by whom.

Enter image description here

Solution 5 - Git

I would recommend using Git Graph extension.

Solution 6 - Git

I strongly recommend using a combination of GitLens & GitGraph.

Below snapshot highlights how gitlens is showing commit over time

enter image description here

And the below picture is for the the amazing vivid GitGraph

enter image description here

Solution 7 - Git

You don't need an extension to do this, you can just go to Explorer and then Timeline. Timeline in Explorer

If you don't want it in Explorer, you can drag and drop it to the Sidebar, or Source Control or anywhere you want!

in sidebar

If you want more fancy features like visualizing and all that stuff you need an extension.

Solution 8 - Git

Git Graph seems like a decent extension. After installing, you can open the graph view from the bottom status bar.

Solution 9 - Git

You will find the right icon to click, when you open a file or the welcome page, in the upper right corner.

Enter image description here

And you can add a keyboard shortcut:

Enter image description here

Solution 10 - Git

If you need to know the Commit history only, So don't use much Meshed up and bulky plugins,

I will recommend you a Basic simple plugin like "Git Commits"

I use it too : 

https://marketplace.visualstudio.com/items?itemName=exelord.git-commits

Enjoy 

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionrlesiasView Question on Stackoverflow
Solution 1 - GitThormaWeb.comView Answer on Stackoverflow
Solution 2 - GitVonCView Answer on Stackoverflow
Solution 3 - GitJoseph SheedyView Answer on Stackoverflow
Solution 4 - GitprostiView Answer on Stackoverflow
Solution 5 - GitarkhwiseView Answer on Stackoverflow
Solution 6 - GithelcodeView Answer on Stackoverflow
Solution 7 - GitMayankView Answer on Stackoverflow
Solution 8 - GitJoe PhillipsView Answer on Stackoverflow
Solution 9 - GitTobias OttoView Answer on Stackoverflow
Solution 10 - GitKRISHNAView Answer on Stackoverflow