0%

Git配置

配置用户信息

1
2
3
4
5

#配置用户名和邮箱
git config --global user.name
git config --global user.email

配置编码

1
2
3
4
5
6
7
8

#中文路径和文件名乱码
git config --global core.quotePath false

#修改commit编码方式
git config --global i18n.commitEncoding utf-8
git config --global i18n.logOutputEncoding

配置内网域名证书

1
2
3
4
git config --global http."内网域名".sslCAInfo "证书所在路径"

# 示例
git config --global http."https://example.io".sslCAInfo ~/.certs/selfsigned-root-ca.crt