I would like to get the all existing files ignored by git repository or in my local also if it is possible and explaining the command
I have tried this commands but not working.
git ls-files --ignored -o
result is
fatal: ls-files --ignored needs some exclude pattern
and this one also
git ls-files --others --exclude=*.o --ignored
result is
zsh: no matches found: --exclude=*.o
and this also
git check-ignore -v
result is
fatal: no path specified
Please explain what is the benefit of this and why I couldn't find the right answer and how to search in docs of gits for the right command because I couldn't manage it.
I tried the solution mentioned in this link and the result i got is this
git ls-files --ignored -X /path/to/gitignore
fatal: cannot use /path/to/gitignore as an exclude file
Learning the Linux and git tool and improving my skills in that area
git status --ignored,git check-ignore **/*,git ls-files --ignored --others --exclude-standardgit ls-files --ignored --others --exclude="*.o"orgit ls-files --ignored --others --exclude=\*.opath/to/gitignoreis just a placeholder where you should put in your absolute or relative path? Most probably just.gitignoreor./.gitignorecould be enough.