Skip to content

Instantly share code, notes, and snippets.

@albannurkollari
Created July 29, 2021 09:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save albannurkollari/f1a694dfca0c44aca529f37276ba4a3c to your computer and use it in GitHub Desktop.
Save albannurkollari/f1a694dfca0c44aca529f37276ba4a3c to your computer and use it in GitHub Desktop.
My day to day GIT aliases
# to be updated
[alias]
## disecting/inspecting/searching
findkeyword = "!f() { git log -S $1 --oneline -- ':(exclude)*package-lock.json' . ; }; f"
@albannurkollari
Copy link
Author

albannurkollari commented Jul 29, 2021

Usage of findkeyword:

$ git findkeyword myBuzzWord
33ea1d642 fixup! Components: bla bla bla
96c7f0208 Moved the previous font loading from Range app to the shared components
19c1d02b4 Add font-face for custom fonts to support korean

The result will be a number of commits (or no commit at all) for the given keyword to search among files that had a change or was introduced into.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment