List ignored files with git --assume change

Asked

Viewed 845 times

3


I ignored some files in a git project and I just need to have control to know which ones were ignored or not. Will that at some point I need to change.
I’ve tried all the commands below:

 1116  git --index-info
 1117  git check-ignore
 1119  git check-ignore ./
 1120  git ls-files -i
 1121  cat .git/ignore
 1122  cat .git/index 
 1123  git ls-files --others -i --exclude-standard

Thanks for your help..

  • 1

    Hello Rafael, wouldn’t you like to post a mini-example of commands you ran to "ignore" files? I usually edit the file .gitignore to ignore a particular file, and view it Patterns ignored listed the contents of the file cat .gitignore, but I don’t know if I’m talking about the same thing you are.

2 answers

4


A simple way is to execute the command git clean -ndX, which will display a preview of the files that would be removed by the command without the -n parameter.

If you want to understand this command more and how this parameterization helps you in this situation, see the command manual on the Git website: http://git-scm.com/docs/git-clean

0

From version 1.7.6, just use the command: git status --Ignored

Browser other questions tagged

You are not signed in. Login or sign up in order to post.