Pages

Wednesday, January 23, 2013

git ignore certain files


Sounds like you added app/runtime/application.log to git before applying the .gitignore rules.gitignore doesn't affect git's awareness of existing files, only newly created ones.
git rm --cached app/runtime/* should remove the logs from git's index.
Also add -r if you want to recursively remove a folder.

No comments:

Post a Comment