1

I'm stuck in shell exercices. I have to do an exercise where I have to write a command that displays all files ignored by git.

I used this: git status --ignored --porcelain It works well but it does not display as I want. Already it also displays the uncommitted files(with a serie of ??? before), and it also displays a series of "!!!" for files ignored before the word, and I would like to just display their names.

How can I do it? Is there another way?

2
  • stackoverflow.com/search?q=%5Bgit%5D+list+ignored+files Commented Jul 5, 2021 at 22:11
  • git ls-files --exclude-standard -i -o, git check-ignore $(find . -type f), git check-ignore **/* (requires shopt -s globstar). Commented Jul 5, 2021 at 22:13

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.