diff --git a/bash/alias/git.sh b/bash/alias/git.sh index fd54132..909c2b4 100644 --- a/bash/alias/git.sh +++ b/bash/alias/git.sh @@ -63,9 +63,6 @@ clean \ --force \ " -# index all and commit -alias gacm='git add --all;git commit -m' - # commit the index alias gcm='git commit -m' @@ -118,19 +115,39 @@ alias gcun='git config user.name' alias gcue='git config user.email' # differences from last or between commits -alias gd='git diff' +alias gd="\ +git \ +diff \ +" # display what is indexed in cache -alias gdc='git diff --cached' +alias gdc="\ +git \ +diff \ +--cached \ +" # indexed character-level differences -alias gdcw='git diff --cached --word-diff-regex=.' +alias gdcw="\ +git \ +diff \ +--cached \ +--word-diff-regex=. \ +" # differences via external tool -alias gdt='git difftool --dir-diff' +alias gdt="\ +git \ +difftool \ +--dir-diff \ +" # character-level differences -alias gdw='git diff --word-diff-regex=.' +alias gdw="\ +git \ +diff \ +--word-diff-regex=. \ +" # fetch from the remote repository alias gf="\