Last active
August 30, 2022 16:31
-
-
Save adamgiese/fa06f9796de89ce37bba19145ed20e5f to your computer and use it in GitHub Desktop.
Some of my favorite git aliases
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
[alias] | |
# git grep | |
todos = grep -i todo -- ':/' | |
fonts = grep -E "(font)(-family)?:" -- "*.css" "*.scss" | |
hooks = grep -w -E "use[A-Z]+[a-zA-Z]*" | |
list-hooks = !git grep -Eho "use[A-Z]+[a-zA-Z]*" | sort | uniq | less | |
search-all = !git rev-list --all | xargs git grep | |
colors = grep -IEho -e "#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})" --or -e "(hsl|rgb)a?[(][^)]*[)]" -- ":/*.css" ":/*.js" ":/*.jsx" ":/*.scss" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment