View git history for folder

前端 未结 2 1621
故里飘歌
故里飘歌 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.

提交回复
热议问题