From 64c39902a6a194b42638e44a775e36943636f211 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 14 May 2023 22:15:44 +0200 Subject: [PATCH] gd --- bash/alias/git.sh | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) 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="\