cd ~
vi .gitconfig
[alias]
a = add
ap = add -p
st = status ./ -sb
ss = stash
sss = stash show -p
ssk = stash --keep-index
ssd = stash drop
sa = stash apply
sp = stash pop
sl = stash list
cm = commit -m
cv = commit -v
ca = commit --amend
can = commit --amend --no-edit
co = checkout
cp = checkout -p
d = diff
dc = diff --cached
ds = diff --stat
pr = pull --rebase
ps = push
pk = cherry-pick
pkc = cherry-pick continue
rc = rebase --continue
ri = rebase --interactive
unstage = reset HEAD --
rank = shortlog -sn --no-merges
g = grep --break --heading --line-number
l = log --graph --abbrev-commit --pretty=format:'%C(yellow)%h%Creset %C(yellow)%d%Creset %s %Cgreen(%ci) %C(cyan)<%an>%Creset'
ll = log --graph --abbrev-commit --pretty=format:'%C(yellow)%h%Creset %C(yellow)%d%Creset %s %Cgreen(%ci) %C(cyan)<%an>%Creset' -30
lp = log --graph --abbrev-commit --pretty=format:'%C(yellow)%h%Creset %C(yellow)%d%Creset %s %Cgreen(%ci) %C(cyan)<%an>%Creset' -p
la = log --graph --abbrev-commit --all --pretty=format:'%C(yellow)%h%Creset %C(yellow)%d%Creset %s %Cgreen(%ci) %C(cyan)<%an>%Creset'
[user]
name = ExDevilLee(注意改成自己的名字哈)
email = lisufan007@126.com(注意改成自己的邮箱哈)
[core]
autocrlf = input