How do I search git history for a disappeared line?

Posted by skiphoppy on Stack Overflow See other posts from Stack Overflow or by skiphoppy
Published on 2010-04-23T16:10:55Z Indexed on 2010/04/23 16:13 UTC
Read the original article Hit count: 162

Filed under:

I need to search the history of a file in a git repository to find a line that is gone. The commit message will not have any relevant text to search on. What command do I use?

Further details: this is the history of my todo list out of our non-stellar task tracking software. I've been keeping it for two years because there's just not enough information kept for me in the software. My commit messages usually have only the task ids, unfortunately, and what I need to do is find a closed task by subject, not by number. Yes, the real solution is better task tracking software, but that is completely out of my hands.

© Stack Overflow or respective owner

Related posts about git