The proposed solution is not to add .gitignore to .git/info/exclude, but to add your custom rules to the .git/info/exclude file directly.
For instance, this is my local version. $ cat .git/info/exclude # git ls-files --others --exclude-from=.git/info/exclude # Lines that start with '#' are comments. # For a project mostly in C, the following would be a good set of # exclude patterns (uncomment them if you want to use them): # *.[oa] # Emacs saved buffers *~ # Vim swap files *.swp # Video files *.yuv *.265 *.mp4 In my local folder, you can see I have two video files. $ ls *.265 Square_416x240_60.265 Square_416x240_60_wpp.265 Yet, when I run git status, these files are correctly ignored. $ git status On branch develop Your branch is ahead of 'origin/develop' by 1 commit. (use "git push" to publish your local commits) nothing to commit, working directory clean Moreover, my .gitignore file is identical to the one committed. $ cat .gitignore # Build directory build/* # Scons generated files .sconf* .scons* config.log options.py Could you please paste both your .gitignore and .git/info/exclude files to make sure everything is ok? François On May 8, 2014, at 11:29 AM, Laurent Birtz <[email protected]<mailto:[email protected]>> wrote: The proposed solution does not work. I couldn't find a working solution, so I asked on stackoverflow. http://stackoverflow.com/questions/23546027/ignore-changes-to-committed-gitignore Laurent -- To unsubscribe visit http://f265.org or send a mail to [email protected].
