Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to show history of a folder in visual studio git

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

like image 835
Andy Avatar asked Dec 30 '16 14:12

Andy


People also ask

How do I view the history of a file in Visual Studio?

Visual Studio Code allows us to check the history of navigated files in Navigation History lists. You can open this window from “Goto–> Navigation History” or by just simply pressing Ctrl + Tab. This will bring list of all previously navigated files with in Visual Studio Code.

How do I see my git history?

Git file History provides information about the commit history associated with a file. To use it: Go to your project's Repository > Files. In the upper right corner, select History.

How do I see changes in git Visual Studio?

Select an existing branch in Visual Studio 2019Visual Studio displays the current branch in the selector at the top of the Git Changes window. The current branch is also available in the status bar on the bottom-right corner of the Visual Studio IDE. From both locations, you can switch between existing branches.


2 Answers

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

like image 57
sergiopereira Avatar answered Sep 28 '22 09:09

sergiopereira


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

like image 24
Terje Sandstrøm Avatar answered Sep 28 '22 10:09

Terje Sandstrøm