Git 2 · Stash and history

Find commits that changed a string

List commits whose changes add or remove the given text.

git log -S"functionName" --oneline

Official Git 2 documentation

More stash and history commands

All stash and history commands · Git 2 cheatsheet

Was this page helpful?