Love this, incorporating some of them into my git tricks!
Building on your alias list command, I have an alias called alias:
alias.alias !alias(){ git config --get-regexp "^alias.${1}"; }; alias
This'll list all aliases matching the provided prefix, or just all aliases with no arguments:
git alias # ... many lines of cool aliases git alias alias # alias.alias !alias(){ git config --get-regexp "^alias.${1}"; }; alias git alias ancestor # alias.ancestor merge-base --octopus git alias c # alias.current rev-parse --abbrev-ref HEAD # alias.contains !contains(){ git fetch && git rev-parse ${1:-HEAD} | xargs git branch -r --contains; }; contains # alias.cherrypick cherry-pick
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Love this, incorporating some of them into my git tricks!
Building on your alias list command, I have an alias called alias:
alias.alias !alias(){ git config --get-regexp "^alias.${1}"; }; alias
This'll list all aliases matching the provided prefix, or just all aliases with no arguments: