diff options
author | Guangxiong Lin <[email protected]> | 2022-09-08 03:20:24 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-09-08 03:20:24 +0800 |
commit | ac5eaaaeac34ee2390e6bdfc420a8235f3f40400 (patch) | |
tree | 28a90ef8b70429936a7b5709719cc1f8616d537a | |
parent | 26574d31ba44ff1c131effde07436eca3ba0e9df (diff) | |
download | dotfiles-ac5eaaaeac34ee2390e6bdfc420a8235f3f40400.tar.gz dotfiles-ac5eaaaeac34ee2390e6bdfc420a8235f3f40400.tar.bz2 dotfiles-ac5eaaaeac34ee2390e6bdfc420a8235f3f40400.zip |
Remove oh-my-zsh git alias and create my own ones
-rw-r--r-- | .aliases | 4 | ||||
-rw-r--r-- | .gitconfig | 31 | ||||
-rwxr-xr-x | .zplugrc | 1 |
3 files changed, 35 insertions, 1 deletions
@@ -50,3 +50,7 @@ fi if command -v tig &> /dev/null; then alias tigs='tig status' fi + +# git alias + +alias g='git' @@ -13,3 +13,34 @@ [core] excludesFile = ~/.gitignore attributesfile = ~/.gitattributes +[alias] + ap = add --patch + ci = commit + br = branch + co = checkout + st = status + stsb = status --short --branch + df = diff + dfc = diff --cached + dt = difftool + mt = mergetool + + rmc = rm --cached + untrack = rm --cached + + lo = log --oneline --graph --decorate + loa = log --oneline --graph --decorate --all + + lol = log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' + lols = log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --stat + lola = log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --all + + cp = cherry-pick + cpa = cherry-pick --abort + cpc = cherry-pick --continue + + rb = rebase + rbi = rebase -i + rbc = rebase --continue + rba = rebase --abort + rbs = rebase --skip @@ -8,7 +8,6 @@ if [ ! -d $ZPLUG_HOME ]; then fi source $ZPLUG_HOME/init.zsh -zplug "plugins/git", from:oh-my-zsh zplug "zsh-users/zsh-completions" zplug "zsh-users/zsh-syntax-highlighting" zplug "dracula/zsh", as:theme |