From ac5eaaaeac34ee2390e6bdfc420a8235f3f40400 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Thu, 8 Sep 2022 03:20:24 +0800 Subject: Remove oh-my-zsh git alias and create my own ones --- .gitconfig | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to '.gitconfig') diff --git a/.gitconfig b/.gitconfig index 24fc57c..02f0814 100644 --- a/.gitconfig +++ b/.gitconfig @@ -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 -- cgit v1.2.3