Git command to show which specific files are ignored by .gitignore

后端 未结 9 1254
我在风中等你
我在风中等你 2020-11-22 05:07

I am getting my feet wet with Git and have the following issue:

My project source tree:

/
|
+--src/
+----refs/
+----...
|
+--vendor/
+----...
         


        
9条回答
  •  一整个雨季
    2020-11-22 06:01

    There is a much simpler way to do it (git 1.7.6+):

    git status --ignored
    

    See Is there a way to tell git-status to ignore the effects of .gitignore files?

提交回复
热议问题