推荐的git 配置方式
2017-08-11 本文已影响19人
Axiba
# git 推荐配置文件 用于 macOS
# vi ~/.gitconfig
# 用于 Windows
# %USERPROFILE%/.gitconfig
#
[user]
# 请务必改成自己的邮件地址和用户名称
# email = 975052664@qq.com
# name = daomul
[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