1
vim ~/.gitconfig

1607610861960-69f88c41-a1d6-402c-9c47-e8f19dc9a311.png

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  1 [user]
2 name = deltaqin
3 email = delta_qin@163.com
4 [core]
5 autocrlf = input
6 [alias]
7 co = checkout
8 br = branch
9 ci = commit
10 st = status
11 dog = log --all --decorate --oneline --graph
12 [http]
13 proxy = http://127.0.0.1:1087
14 [https]
15 proxy = http://127.0.0.1:1087
~
~
1
2
3
4
5
git config --global alias.st status //status 缩写成 st
git config --global alias.co checkout //checkout 缩写成 co
git config --global alias.br branch //branch 缩写成 br
git config --global alias.ci commit //commit 缩写成 ci
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

1607942184363-e4d11a29-6143-4d95-bf16-d17add37d044.png