10 something commits back, I made a change to .gitignore file. Today when I pulled the latest code, my change was not there. So I ran this command:
git log -p .gitignore
And it showed me that the last change to the file was mine. Then I pulled all the commits between now and my commit, and pinpointed the commit that removed my change. Then I took the diff of That commit, and the one before that, and in the diff I could see the change to the file.
But why can't I see the change through above command? And I don't even see this change when I use
gitk .gitignore
Also I am wondering, might this happen when I try to see the history of some other file as well?