I want to understand the exclude pattern in git ls-files command.
So I want to output all the ignored file within the working directory using the ls-files
command. I know that git status --ignored
will do the job, but my point is to understand using the exclude pattern in case I need it.
I tried this: git ls-files -i -x ./*.txt
In order to output all the ignored (except text-files) files. No success though I have several ignored files.
Could you please help me with this?