欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Git全局配置

程序员文章站 2022-07-14 12:47:20
...
git config --global --edit


[user]
    email = <your name>@openjawtech.com
    name = <your name>
[commit]
    template = C:\\Users\\<your name>\\.gitmessage
[push]
    default = simple
[diff]
    tool = bc2
[difftool "bc2"]
    cmd = \"C:/Program Files (x86)/Beyond Compare 2/BC2.exe\" \"$LOCAL\" \"$REMOTE\"
[difftool]
    prompt = false
[merge]
    tool = kdiff3
    renameLimit = 999999
[mergetool "kdiff3"]
    cmd = \"C:/Program Files/KDiff3/kdiff3.exe\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
    trustExitCode = true
[core]
    editor = 'C:/Program Files/Notepad++/notepad++.exe' -multiInst -nosession -noPlugin
    pager = cat
    autocrlf = true
[gui]
    encoding = utf-8
相关标签: git