Getting Started

Ignoring Files

To set your rules of file ignoring, you have to create a .gitignore file

To ignore all .a files

*.a

But do track lib.a, even though you're ignoring .a files

!lib.a

Only ignore the TODO file in the current directory, not subdir/TODO

/TODO

To ignore all files in the build/ directory

build/

To ignore doc/notes.txt, but not doc/server/arch.txt

doc/*.txt

To ignore all .pdf files in the doc/ directory and any of its subdirectories

doc/**/*.pdf

For ready .gitignore files