I had somewhere in my Git repository a line containing the word "Foo" a couple of hundreds of commits before.
If there is any way to find its revision number where it was the last time?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That may be addressed by the pickaxe (
-S) option ofgitlog(you can even add a time range:
--since=2009.1.1 --until=2010.1.1)Update 2014:
Since then, you can do (from nilbus‘s answer):
(I reference that last command in “How to list branches that contain a given commit?“)