git配置项

git配置项

[color]
        ui = true
[core]
        autocrlf = input
        excludesfile = C:/Users/xxx/.gitignore
        safecrlf = warn
        quotepath = false
[alias]
        gb = reset --hard HEAD~
        sh = show
        po = push origin
        st = status
        co = checkout
        cd = checkout develop
        cm = checkout master
        ci = commit
        br = branch
        df = diff
        dfh = diff HEAD
        dfm = diff master
        unstage = reset HEAD
        mg = merge
        md = commit --amend
        cf = config
        cl = clone
        line = log --oneline
        hist = log --pretty=format:\"%C(yellow)%h %C(red)%d %C(reset)%s %C(green)[%an] %C(blue)%ad\" --topo-order --graph --date=short
        up = rebase
        cp = cherry-pick
        pl = pull --rebase
        lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
        sync = "!git branch --merged | grep  -v '\\*\\|master\\|develop' | xargs -n 1 -r git branch -d"
[push]
        default = current
[credential]
        helper = store
[branch]
        autosetupmerge = always

你可能感兴趣的:(git配置项)