mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
8 lines
197 B
Bash
Executable file
8 lines
197 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
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
|