-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
18 lines (18 loc) · 931 Bytes
/
gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[user]
name = "Po-Ning Tseng"
email = "[email protected]"
[color]
ui = true
[core]
editor = nvim
pager = diff-so-fancy | less --tabs=4 -RFX
[alias]
lg = log --color --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lgg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lgd = log --color --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit --date='format-local:%Y-%m-%d %H:%M:%S'
st = status
cm = commit -m
dc = diff --cached
rank = shortlog -sn --no-merges
cof = !git for-each-ref --format='%(refname:short)' refs/heads | fzf | xargs git checkout
shw = show --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' -s --date='format-local:%Y-%m-%d %H:%M:%S'