diff --git a/git/.config/git/config b/git/.config/git/config index e8d9579..8f56266 100644 --- a/git/.config/git/config +++ b/git/.config/git/config @@ -22,6 +22,7 @@ last = "diff HEAD~ HEAD" pushall = "!git remote | xargs -I R git push R" # push to all connected remotes fetchall = "!git remote | xargs -I R git fetch R" # fetch from all connected remotes + diffword = "!git diff --word-diff=color --word-diff-regex='[0-9A-Za-z_]+'" # word-wise diff, good for prose [commit] gpgsign = true # sign commits as me verbose = true # Always show diff when preparing commit message diff --git a/git/.config/sh/alias.d/git.sh b/git/.config/sh/alias.d/git.sh index 372b1ec..ad465f6 100644 --- a/git/.config/sh/alias.d/git.sh +++ b/git/.config/sh/alias.d/git.sh @@ -32,7 +32,9 @@ fi alias gco='git checkout' alias gd='git diff' +alias gdd='git diffword' alias gds='git diff --staged' +alias gdds='git diffword --staged' alias gi='git ignore'