mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
8 lines
184 B
Bash
Executable file
8 lines
184 B
Bash
Executable file
#!/bin/sh
|
|
|
|
case $# in
|
|
0) git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /' | sort ;;
|
|
1) git alias | grep -e "$1" ;;
|
|
*) git config --global "alias.$1" "$2" ;;
|
|
esac
|