Git .gitignore Usage
Comments discuss features, configuration, global usage, and best practices for .gitignore files in Git, including tool integration and common pitfalls.
Activity Over Time
Top Contributors
Keywords
Sample Comments
Something I didn't dig to find, but is it possible for these applications to also respect .gitignores? Might be a handy flag!
Nice! I remember being surprised that .gitignore didn't do this.
How much ignore would a git gitignore ignore if that gitignore was a git?
Nice! Is there a way to check this into a repository (a la .gitigore)?
It would be nice if it would have a .gitignore like ignore file. Or does it?
In my experience .gitignore files are often overloaded, so would provide false positives.
Adding to `~/.gitignore` is not enough. You need to tell Git to use it via `git config --global core.excludesfile ~/.gitignore` or similar.
.git/info/exclude seems like the right place for this.
For source code repos, yeah. Otherwise, add .DS_Store to your .gitignore.
my .gitignore is set to ignore everything with a wildcard and un-ignore a few hidden directories where i'm likely to place new files (e.g., .vim, .zsh)