28

I'm using visual studio 2016 git integration. If I right-click on a source file I can see the history of just that file. similarly if it's a sub-folder inside a project, I can see the history of the folder.

However, if I select a project or the solution in solution explorer, it just shows me the history of the .csproj or .sln file.

How do I see the history of the whole project or solution (i.e. the folder that corresponds to the project itself or the solution folder containing the projects)?

relatively_random
  • 4,505
  • 1
  • 26
  • 48
Andy
  • 10,412
  • 13
  • 70
  • 95

2 Answers2

34

You can change the Solution Explorer to Folders View

enter image description here

Then you can right-click to find the View History menu.

enter image description here

sergiopereira
  • 2,026
  • 2
  • 23
  • 31
25

Have you tried to go to the Team Explorer, and choose one of the hubs Changes, or Branches, or Sync ? You will find a drop down menu item named Actions, and within that you will find View History.
enter image description here

or you can go to the different branches in the Branches Hub, right click one of the branches, and choose View History

enter image description here

This will show you the whole history for your repo for a given branch.
If you have multiple folders or solutions within a repo, there is currently no such feature within VS, so you then need to revert to the command line, and use git log, or the gitk for a kind of graphic view of the same, a previous answer for that is here: View git history for folder

Community
  • 1
  • 1
Terje Sandstrøm
  • 1,979
  • 15
  • 14