How to remove log and idea files on your project ?

Remove idea files

1
git rm -r --cached .idea

While you were remove, terminal gives error about it, you can try to below command :

1
git rm -rf --cached .idea

Remove log files

1
git rm -r log/development.log

After that, you should include on your .gitignore file like;

1
echo '*log' > .gitignore

That’s all.

Comments