Last active
October 11, 2022 17:54
-
-
Save dasgoll/90ca56106bf81d3791186dc91a29280a to your computer and use it in GitHub Desktop.
Search All of Your Git History commit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## reference: https://www.youtube.com/watch?v=BaBKBy2vHmM | |
| git log -S accountSubType | |
| git log -S accountSubType -p | |
| ## search all branches | |
| git log -S accountSubType -p --all | |
| ## search recursively in .py files | |
| git log -S accountSubType -p -- **/*.py | |
| ## search using a regex | |
| git log -g '^account' -p | |
| ## search commit messages (string or regex) | |
| git log --grep funny |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment