Git archaeology with pickaxe

git archaeology is important part of many software developers. Sometimes you need to find which commits introduced or removed the getUserById method or any other string.

git log --oneline -S getUserById

It’s very fast and convenient tools git gives you out of the box. If you need more find-tuned control, --pickaxe-regex is at your disposal.

git log --oneline -S awe..me --pickaxe-regex
git log --oneline -S"[bash|console]" --pickaxe-regex

Consider using pickaxe next time you’re about to dig deeper into git VCS!
This protip has been written in 663 seconds