# git config 设置

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

[color]
        branch = auto
        diff = auto
        status = auto
[gui]
        editor = gvim
        historybrowser = gitk
[merge]
        tool = kdiff3
        conflictstyle = diff3
[push]
        default = simple
[alias]
        l = log --graph --all --oneline
        cm = commit
        cma = commit --amend
        cmaa = commit -a --amend
        rbs = rebase --skip
        rbc = rebase --continue
        rba = rebase --abort
        co = checkout
        rb = rebase
        p = push
        pf = push -f
        pa = push --all
        paf = push --all -f
        rbi = rebase -i
        debver = !git describe --tags --long --always | sed -r \"s/([0-9]+?)-([0-9]+?)-g([0-9a-f]+?)/\\1+\\2.\\3/g\"
        pt = push --tags
        ptf = push --tags -f
        prbu = pull --rebase upstream
[diff]
        rename = true
        tool = kdiff3
[cola]
        tabwidth = 4
[status]
        submoduleSummary = true
[http]
[https]
[core]
        excludesfile = ~/.gitignore
				pager = diff-so-fancy | less --tabs=4 -RFX
[http "https://gopkg.in"]
        followRedirects = true
[fetch]
        prune = true
[branch]
				autosetuprebase = always