diff --git a/git/git.zsh b/git/git.zsh index 7a5e2f6..0f233f8 100644 --- a/git/git.zsh +++ b/git/git.zsh @@ -5,6 +5,7 @@ alias gb='git branch' alias gl='git pull' alias gp='git push' alias gd='git diff' +alias gdc='git diff --cached' alias gs='git s' alias gss='git stash save' alias gsp='git stash pop' diff --git a/git/gitconfig.symlink b/git/gitconfig.symlink index 9590b54..6cd1b49 100644 --- a/git/gitconfig.symlink +++ b/git/gitconfig.symlink @@ -13,6 +13,8 @@ lg = log --graph --pretty=oneline --abbrev-commit --decorate # show files that have changed between two branches (git dbr master..branch) dbr = diff --name-status + # show diff of cached files + gdc = diff --cached # stash shortcuts sp = stash pop