1. cd ~
    2. vi .gitconfig
    1. [alias]
    2. a = add
    3. ap = add -p
    4. st = status ./ -sb
    5. ss = stash
    6. sss = stash show -p
    7. ssk = stash --keep-index
    8. ssd = stash drop
    9. sa = stash apply
    10. sp = stash pop
    11. sl = stash list
    12. cm = commit -m
    13. cv = commit -v
    14. ca = commit --amend
    15. can = commit --amend --no-edit
    16. co = checkout
    17. cp = checkout -p
    18. d = diff
    19. dc = diff --cached
    20. ds = diff --stat
    21. pr = pull --rebase
    22. ps = push
    23. pk = cherry-pick
    24. pkc = cherry-pick continue
    25. rc = rebase --continue
    26. ri = rebase --interactive
    27. unstage = reset HEAD --
    28. rank = shortlog -sn --no-merges
    29. g = grep --break --heading --line-number
    30. l = log --graph --abbrev-commit --pretty=format:'%C(yellow)%h%Creset %C(yellow)%d%Creset %s %Cgreen(%ci) %C(cyan)<%an>%Creset'
    31. ll = log --graph --abbrev-commit --pretty=format:'%C(yellow)%h%Creset %C(yellow)%d%Creset %s %Cgreen(%ci) %C(cyan)<%an>%Creset' -30
    32. lp = log --graph --abbrev-commit --pretty=format:'%C(yellow)%h%Creset %C(yellow)%d%Creset %s %Cgreen(%ci) %C(cyan)<%an>%Creset' -p
    33. la = log --graph --abbrev-commit --all --pretty=format:'%C(yellow)%h%Creset %C(yellow)%d%Creset %s %Cgreen(%ci) %C(cyan)<%an>%Creset'
    34. [user]
    35. name = ExDevilLee(注意改成自己的名字哈)
    36. email = lisufan007@126.com(注意改成自己的邮箱哈)
    37. [core]
    38. autocrlf = input