I just found out, that one of my test files is missing about 20 lines on the top.
I've been recently trying to master VIM, so I guess I somehow managed to delete those lines without me even noticing, and then commiting it into the repository.
Now the question is, what's the best way to find out when this happened? How can I tell when something was deleted?
Find a revision R where those line existed, then use
git blame --reverse $R..HEAD <file>
This will show you who deleted them.
If you can't find such a revision, but you remember a string (say 'test_database') contained in the missing lines, you can use the pickaxe feature to search for commits involving that string:
git log -Stest_database <file>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With