alias是别名,设置后可以 git co 分支名

    1. [color]
    2. branch = auto
    3. diff = auto
    4. status = auto
    5. [gui]
    6. editor = gvim
    7. historybrowser = gitk
    8. [merge]
    9. tool = kdiff3
    10. conflictstyle = diff3
    11. [push]
    12. default = simple
    13. [alias]
    14. l = log --graph --all --oneline
    15. cm = commit
    16. cma = commit --amend
    17. cmaa = commit -a --amend
    18. rbs = rebase --skip
    19. rbc = rebase --continue
    20. rba = rebase --abort
    21. co = checkout
    22. rb = rebase
    23. p = push
    24. pf = push -f
    25. pa = push --all
    26. paf = push --all -f
    27. rbi = rebase -i
    28. debver = !git describe --tags --long --always | sed -r \"s/([0-9]+?)-([0-9]+?)-g([0-9a-f]+?)/\\1+\\2.\\3/g\"
    29. pt = push --tags
    30. ptf = push --tags -f
    31. prbu = pull --rebase upstream
    32. [diff]
    33. rename = true
    34. tool = kdiff3
    35. [cola]
    36. tabwidth = 4
    37. [status]
    38. submoduleSummary = true
    39. [http]
    40. [https]
    41. [core]
    42. excludesfile = ~/.gitignore
    43. pager = diff-so-fancy | less --tabs=4 -RFX
    44. [http "https://gopkg.in"]
    45. followRedirects = true
    46. [fetch]
    47. prune = true
    48. [branch]
    49. autosetuprebase = always