配置
-
项目配置文件:项目/.git/config
git config -- local user.name 'yuhaixia' git config -- local user.email 'yuhaixiaemail@xx.com'
-
全局配置文件: ~/.gitconfig
git config -- global user.name 'zhoushun' git config -- global user.email 'zhoushunemail@xx.com'
-
系统配置文件:/etc/.gitconfig
git config --system user.name 'zhoushun' git config -- system user.email 'zhoushunemail@xx.com'
注意:需要有root权限
git 忽略文件
- 让Git 不再管理当前目录下的某些文件