This is not rocket science but more a reminder for myself 🙂
When working with eclipse and the egit plugin I noticed that a ‘git refresh’ would take minutes in certain projects. The particular project has a few directories containing 10000+ .ogg and .png files which are not included in the git repo. I have git exclude files and global .gitignore files in place but egit seems to ignore them.
So I added the file patterns to the egit ‘Ignored Recources’.
(For example I want to exclude everything in my */lib/Sounds)
Open Window -> Preferences -> Team -> EGit -> Add pattern
The pattern to add: */lib/Sounds/* (duhhh)
Push ‘apply’ and presto, the refresh just takes seconds 🙂
Just for completeness I include my .gitignore_global, the relevant parts and the projects exclude file.
To have the git global ignoring stuff do: git config --global core.excludesfile ~/.gitignore_global
The .git/info/exclude file:
# exclude patterns (uncomment them if you want to use them):
This entry was posted by Stas Zytkiewicz on December 5, 2012 at 6:56 am, and is filed under Linux, Python, Windows. Follow any responses to this post through RSS 2.0.
You can skip to the end and leave a response. Pinging is currently not allowed.