Skip to main content

Git for Authors

Section A.4 Ignore Temporary Files

You can save this subsection for later. When you run git status you will eventually become annoyed by intermediate or temporary files in your working directory that keep being reported as untracked, and worse case, they will obscure files you really need to know about. There is a .gitignore file (globally, or per-repository) where you can list filename patterns for git to ignore. You can find lots of examples on the Internet (in addition to lots of custom configurations). I prefer not to use too much extra configuration, so that if I end up on an unfamiliar computer, commands continue to work as I expect.