git ls-files --others --exclude-from=.git/info/exclude
- Lines that start with '#' are comments.
- For a project mostly in C, the following would be a good set of
- exclude patterns (uncomment them if you want to use them):
- *.[oa]
- *~
- Cobol
*
!Copybook/
!Copybook/*.cob
#Alt-Zs
apolcrp1.cob
arbenr11.cob
AMATURIT.cob
termmyga.cob
runsquot.cob
arelarpt.cob
rungridr.cob
!Source/
!Source/*.cob
Source/apolcrp3.cob
!Screens/
!Screens/*.h
LPKEYS.H
!Screens/*.rc
stempcpy.rc
The above is a copy of the .gitignore file that I've converted to the exclude file. While it was in a global .gitignore file the Alt-Zs were being ignored as expected. However once I changed the logic to the exclude file SourceTree no longer is ignoring them. It's treating them as new files.
Please advise as to why the logic doesn't work for the exclude file and what I need to type differently to ensure that it does.
Thanks!