I have really strange case, when I cannot to ignore a log file "SE.log" in my git repository. I have created "tmp.log" file and it to ignore properly.
my .gitignore file:
I have really strange case, when I cannot to ignore a log file "SE.log" in my git repository. I have created "tmp.log" file and it to ignore properly.
my .gitignore file:
It looks like SE.log
has already been committed, you need to do a:
git rm -rf --cached .
git add .
git commit -m "SE.log is now ignored"
You just need to remove your file from commit list using
git rm --cached
and then commit.
See this Remove files from Git commit