推荐的git 配置方式

# git 推荐配置文件 用于 macOS
# 修改全局项目
# vi ~/.gitconfig 
# 修改当前项目
# vi .git/config. 
# 用于 Windows
# %USERPROFILE%/.gitconfig
#
[user]

    # 请务必改成自己的邮件地址和用户名称
    # email = ****@qq.com
    # name = *****

[tar "tar.xz"]
    command = xz -cz9

[core]
   # eol = lf
    filemode = false # 仅用于 Windows
    autocrlf = false
    safecrlf = warn
    longpaths = true
    quotepath = false

[i18n]
    commitEncoding = utf-8

[branch]
    autosetuprebase = always

[pull]
    rebase = true

[rebase]
    autosquash = true

[merge]
    renormalize = true

[http]
    sslVerify = false

[credential]

    # 记着密码,仅用于 Windows
    helper = manager

    # 缓存密码,用于 macOS/Linux/Windows
    # helper = cache --timeout=604800

你可能感兴趣的:(推荐的git 配置方式)