如何在visual studio git中显示文件夹的历史记录 [英] how to show history of a folder in visual studio git

查看:1003
本文介绍了如何在visual studio git中显示文件夹的历史记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用visual studio 2016 git集成。如果我右键单击某个源文件,则可以看到该文件的历史记录。同样如果它是项目中的子文件夹,我可以看到文件夹的历史记录。



但是,如果我在解决方案资源管理器中选择项目或解决方案,只显示.csproj或.sln文件的历史记录。



如何查看整个项目或解决方案的历史记录(即与项目相对应的文件夹本身或包含项目的解决方案文件夹)?

解决方案

您是否尝试去团队资源管理器,并选择其中一个集线器更改或分支或同步?您会发现一个名为Actions的下拉菜单项,其中您会看到View History。



或者您可以转到分支中心的不同分行,右键单击其中一个分行,然后选择查看历史记录



这将显示给定分支的整个回购历史记录。

如果您有多个文件夹或解决方案一个回购,VS中目前没有这样的功能,所以你需要回到命令行,并使用git log或者gitk来查看相同的图形视图,以前的答案在这里:<一个href =https://stackoverflow.com/questions/11950037/view-git-histor y-for-folder>查看文件夹的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)?

解决方案

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.

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

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

这篇关于如何在visual studio git中显示文件夹的历史记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆