Git - Removing Rail Development Log

I keep making changes to my development.log in my git repository. My .gitignore file has:

log/*.log tmp/**/* doc/api doc/app 

So I need two things.

  • Extract the development.log file from my current commit (its now too large to receive the server)
  • Make sure he does not return there.

Any suggestions?

+6
git
source share
2 answers
 $ git rm log/development.log $ git commit -m"log too big for the server to receive" 

The files in the repo will not be ignored in the ignore file, so after uninstalling the development.log utility, everything should work as you expected.

+13
source share

you can stop file tracking using 'git rm --cache'

take a look at gitref for details

+2
source share

All Articles