View git history for folder

匿名 (未验证) 提交于 2019-12-03 00:56:02

问题:

How can I view git log history for all files within a folder ?

I have found several posts on how to show log for a specific file, but haven't found for a specific folder.

回答1:

You can use either foldername or foldername/*. Either way should work.

git log -- path/to/folder git log -- path/to/folder/* 

History of renamed files will not be followed with this method.



回答2:

if you want to use a graphic tool, such as gitk, it works the same:

gitk -- path/to/folder 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!