git配置文件

我的git配置文件,主要包括三部分:

  1. 命令简写
  2. 写日志的图形界面编辑器
  3. 配置beyond compare 3做diff和merge

 

[alias]
    co = checkout
    ci = commit
    st = status
    br = branch
    his = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
    type = cat-file -t
    dump = cat-file -p
    ls = ls-files
    dt = difftool
    mt = mergetool
[core]
    autocrlf = false
    safecrlf = true
    excludesfile = c:/Users/Administrator/.gitignore
    whitespace = nowarn
    pager = head
    #editor = 'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin
    editor = 'D:/Program Files/Sublime Text 3/subl.exe' -w
[push]
    default = simple
[diff]
    tool = bc3
[difftool]
    prompt = false
[difftool "bc3"]
    #cmd = \"c:/program files/beyond compare 3/BCompare.exe\" "$LOCAL" "$REMOTE"
    path = c:/Program Files/Beyond Compare 3/bcomp.exe
[merge]
    tool = bc3
[mergetool]
    prompt = false
[mergetool "bc3"]
    #trustExitCode = true
    #cmd = \"c:/program files/beyond compare 3/BCompare.exe\" "$LOCAL" "$REMOTE" "$BASE" "$MERGED"
    path = c:/Program Files/Beyond Compare 3/bcomp.exe
posted @ 2018-11-04 15:37  编程柚子  阅读(207)  评论(0)    收藏  举报