Published on

TIL: git supports `:/foo` to find first commit with `foo` in first line

Practically magic. Git has a TON of shortcuts for specifying commits. I have mostly been using stuff like git rebase -i HEAD~3 to get the ancestor commit ref.

See documentation of :/ syntax. Full documentation.