diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2024-10-21 06:02:48 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2024-10-21 06:02:48 -0600 |
commit | 23c219fd2a7f16f1affeb214c9f49b7c935a9c8d (patch) | |
tree | 4a4b2c26915e4980d61c9161debcf3846d227d05 /.config/shell | |
parent | ddb531fb7fc1843f2555a0070b019b413769f912 (diff) |
Diffstat (limited to '.config/shell')
-rw-r--r-- | .config/shell/aliasrc | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index ef97b3a..361da2e 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -24,6 +24,33 @@ fi alias grep="grep --color=auto" alias diff="diff --color=auto" +# +# git related +# +# base +alias gs="git status" +alias gf="git fetch --all --prune" + +# add +alias ga="git add" +alias gap="git -c interactive.diffFilter='git diff --color=always --word-diff' add -p" + +# commit +alias gc="git commit" +alias gca="gc --amend" +alias gcane="gca --no-edit" + +# log +alias gl="git log --graph --all" +alias glol="git log --graph --decorate --pretty=oneline --abbrev-commit" +alias glola="glol --all" + +# diff +alias gd="git diff --color-words='[^[:space:]]|([[:alnum:]]|UTF_8_GUARD)+'" +alias gds="gd --staged" +# not really helpful +# alias gd="git diff --color-words=." + # dotfiles bare repository management # shellcheck disable=SC2139 alias dots="/usr/bin/git --git-dir=$HOME/.mdots/ --work-tree=$HOME" |