Andreas Ericsson <ae <at> op5.se> writes: > Pazu wrote: > > Is there any way to make git completely ignore changes to certain > > local files? I know about .gitignore, but that doesn't work when > > the files I want to ignore were already added to the repository. > > > > Yes it does. Just add the file to .gitignore and it won't be noticed > anymore. > > Correction: I just tested this, and while git-add won't touch the file, > git-update-index will, and git-status still shows it as modified. > > This feels like a bug to me. Following up to a very old thread: how the situation described above stands today? I've been away from git for a while, so I don't know if anything changed recently about this. In short: I want a way to make 'git status' and 'git commit -a' ignore some files, even if they're already added to the repository. My upstream repository (managed by SVN; imported to git using git-svn) contains many files that are spuriously changed by IDE's and other tools, so they will almost aways show up as modified by git, and yet, 99% of the time I don't want to commit them. It's a pain to go through that huge list of files in 'git status' to add stage only one or two files for commit. Thanks, -- Pazu - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html