How to git blame a directory

前端 未结 3 760
长发绾君心
长发绾君心 2021-02-06 23:35

I would like to know how to use git blame to know who created a single directory.

When I try:

git blame DIRECTORY_NAME

I get:



        
3条回答
  •  执念已碎
    2021-02-07 00:15

    Try getting a log of just that directory, and use the -p option to see the exact changes that occurred.

    $ git log -p 
    

    This still might not tell you exactly who created the directory, since git seems to focus more on file content, but you might get some helpful clues just from seeing the first time any content was added to it.

提交回复
热议问题