I\'ve got a repository on GitHub (http://github.com/hrickards/PHP-Crypto) for a little project me and a couple of others are working on. My development environment is Aptana Stu
This is what I use, and I think you'll want to as well. It's close to the other answers, but instructs git to NOT change the local files.
git rm -r -f --cached DirectoryName