Reputation: 24920
There is a log/
dir in git repo, and under it resides a file called history.txt
.
I want to know when the keyword linux programming
first occur in history.txt
or log/
, means find the date of the first commit contain the keyword.
Is that possible?
Upvotes: 1
Views: 115
Reputation: 1324937
You can use a pickaxe search
git log -S"linux programming" -- log/
Take the oldest commit returned by that command (| tail -1
), and you will get your date.
Upvotes: 1