Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git - removing rails development log

Tags:

git

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.

  1. Get the development.log file out of my current commit (its now too big for the server to receive)
  2. Make sure that it doesn't get back in there.

Any suggestions?

like image 763
Daniel Avatar asked Sep 22 '09 14:09

Daniel


1 Answers

$ 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.

like image 65
Pod Avatar answered Sep 26 '22 00:09

Pod