git 常用配置
查看配置
- local仓库级别
- global用户级别: 当前用户在所有仓库都用这个配置
- system系统级别: 整台计算机都用这个配置
优先级: git config --local > git config --global > git config --system
git config --list
git config --global
git config --system
配置账号邮箱
查看
// 查看当前项目
git config user.name
git config user.email
修改
git config user.name "your name"
git config user.email "your email"
忽略文件夹名称大小写
- 默认忽略文件夹大小写
查看当前配置配置
git config --get core.ignorecase
修改
// 不忽略
git config core.ignorecase false
// 忽略
git config core.ignorecase true
ssh
ssh-keygen -t rsa -C "邮箱"