首页 > 代码库 > git配置文件

git配置文件

git配置文件.gitconfig常用配置


[user]  
  name = ********
  email = ********
[color]  
  diff = auto  
  status = auto  
  branch = auto  
  ui = auto  
[core]  
  editor = vim  
[alias]
    co = checkout
    ci = commit
    st = status
    pl = pull
    ps = push
    dt = difftool
    l = log --stat
    cp = cherry-pick
    ca = commit -a
    b = branch
[diff]
    tool = bc3  
[difftool "bc3"]     
    cmd = /usr/bin/bcompare \"$LOCAL\" \"$REMOTE\"     
[difftool]     
    prompt = false     
[merge]  
    tool = bc3     
[mergetool "bc3"]
    cmd = /usr/bin/bcompare \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"     
        trustExitCode = true 


difftool mergetool需要安装beyond compare

git配置文件