Hacker News new | ask | show | jobs
by joemi 5552 days ago
I'm a little confused by what this does... Can't you just not 'git add' a file to have git ignore its changes?
2 comments

The file still shows up in status and, the most important, changes from file still shows up in 'add|checkout|reset -p' which I use all the time.
gitignore only works on files that haven't been added. This looks like it's for files already being tracked.