ssb = status --short --branch
- aliases = !"git config --get-regexp 'alias.' | colrm 1 6 | sed 's/ / = /'"
+ aliases = "!git config --get-regexp '^alias\\.' | colrm 1 6 | sed 's/ / = /'"
add-alias = "!f() { [ $# = 3 ] && git config $1 alias.\"$2\" \"$3\" && return 0 || echo \"Usage: git add-(local|global)-alias <new alias> <original command>\" >&2 && return 1; }; f"
add-global-alias = "!exec git add-alias --global"
add-local-alias = "!exec git add-alias --local"
- tags = tag -n1 --list
+ tags = tag --list -n1
# Find text in any commit ever
grep-all = !"f() { git rev-list --all | xargs git grep \"$@\"; }; f"