Git 相关配置
配置用户名和邮箱
// 配置用户名
git config --global user.name "username"
// 配置邮箱
git config --global user.email "xxx.@xx.com"
生成 SSH KEY
ssh-keygen -t rsa -C "xxx.@xx.com"
忽略文件权限或文件拥有者的改变
# 当前版本库
git config core.filemode false
# 全局配置
git config --global core.fileMode false
本作品采用《CC 协议》,转载必须注明作者和本文链接
推荐文章: