-2

%> bash git_ignore.sh | cat -e

.DS_Store$

mywork.c~$

%>

1 Answers1

0

Should be possible via git ls-files --ignored -X /path/to/gitignore. No need to write a dedicated script.

raphaelstolt
  • 1,962
  • 1
  • 13
  • 7