git 别名配置


记录我自己配置的 git 别名。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
root ~ $ cat .gitconfig
[user]
name = toypipi
email = 275688469@qq.com
[credential]
helper = store
[i18n]
commitencoding = utf-8
logoutputencoidng = utf-8
encoding = utf-8
[core]
autocrlf = input
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
ci = commit
st = status
pl = pull
ph = push

参考文档:
配置别名