3 ms·
In git you can use .git/info/exclude if you need to ignore stuff but don't want to commit a .gitignore.
by eeperson 16y ago
In git you can use .git/info/exclude if you need to ignore stuff but don't want to commit a .gitignore.
- rcthompson 16y agoBut usually you want to commit the things that you're ignoring (some of them, at least). You just don't want to do it twice, once in .gitignore and a second time in .hgignore. My solution is generally to put syntax:glob at the top of .hgignore and symlink it to .gitignore (or vice versa), so that edits to one of them affect both. Of course, I'm assuming that I'll never need to commit a file called "syntax:glob". I feel this is a reasonable assumption.