So after a file has been committed, even if it’s later added into the .gitignore, its modification will be still visible. For it to be really ignored, you need:

$ git rm --cached tmp.log

Sources