Reputation: 16226
I keep getting the changes made to my development.log in my git repository. My .gitignore file has:
log/*.log
tmp/**/*
doc/api
doc/app
So I need two things to happen.
Any suggestions?
Upvotes: 7
Views: 3270
Reputation: 21
you can stop tracking the file using 'git rm --cache '
take a look at gitref for details
Upvotes: 2
Reputation: 4129
$ git rm log/development.log
$ git commit -m"log too big for the server to receive"
An ignorefile won't ignore files that are in the repo, so once development.log is removed everything should work as you expected.
Upvotes: 14