Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (15 sloc) 405 Bytes
#!/usr/local/bin/bash
##Older invocation
##!/usr/local/Cellar/bash/4.4.5/bin/bash
declare -A git_command
git_command=(["co"]="checkout" ["s"]="status" ["d"]="diff" ["amend"]="commit --amend" ["force"]="push --force" ["c"]="commit" ["b"]="branch" \
["r"]="remote")
#git_command=(["key"]="value")
cmd1=$1
if [ ${#git_command[$cmd1]} -gt 0 ]
then
shift
git ${git_command[$cmd1]} $@
else
git $@
fi