diff options
author | William Carroll <wpcarro@gmail.com> | 2017-06-15T20·44-0400 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2017-06-15T20·44-0400 |
commit | bea42cf0f9dbd801b4ced7892af835538106f8e1 (patch) | |
tree | 99de834fb23e0178878e834476059d055b90675e /aliases.sh | |
parent | 8b545b771c2cc7e65edb66094c69cfe48404e67e (diff) |
Adds git alias for diffing staged files
Diffstat (limited to 'aliases.sh')
-rw-r--r-- | aliases.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/aliases.sh b/aliases.sh index eeefdcd9d6e1..facba2ea6c9d 100644 --- a/aliases.sh +++ b/aliases.sh @@ -39,9 +39,11 @@ git config --global alias.recent 'for-each-ref --count=10 --sort=-committerdate # List today's work git config --global alias.today 'log --since=00:00:00 --all --no-merges --oneline --author="$(git config --get user.email)"' - # git commit --amend --no-edit alias gcan='git commit --amend --no-edit' # git commit --amend --no-edit alias gpf='git push --force' + +# git commit --amend --no-edit +alias gds='git diff --staged' |