Skip to content

Instantly share code, notes, and snippets.

@ArmandDu
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArmandDu/52d072de25d7d8bdc55c to your computer and use it in GitHub Desktop.
Save ArmandDu/52d072de25d7d8bdc55c to your computer and use it in GitHub Desktop.
my gitconfig aliases
[alias]
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
discard = "checkout --"
ignore = "!f() { [ -e .git ] && echo "$@" >> .gitignore; }; f"
lg = log --oneline --decorate --all --graph
s = status -s
rmtag = "!f() { ACTION='git tag -d '; ARG="$1"; for arg in "$@"; do case $arg in '-r'|'--remote') ACTION='git push origin :refs/tags/';; *) ARG=$arg;; esac; done; $(echo "$ACTION$ARG"); }; f"
who = shortlog -sen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment