View git history for folder

前端 未结 2 1620
故里飘歌
故里飘歌 2020-12-12 17:28

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 f

相关标签:
2条回答
  • 2020-12-12 18:25

    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.

    0 讨论(0)
  • 2020-12-12 18:28

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

    gitk -- path/to/folder
    
    0 讨论(0)
提交回复
热议问题