gitnote

git

##startup

配置文件

  1. /etc/.gitconfig 最顶级
  2. /home/$USERNAME/.gitconfig 用户设定
  3. project/.gitconfig 当前项目
    下面会把上面的设定覆盖.

git config --global user.name "XXX"
修改/home/username config
git config (--local) user.name "YY"
修改当前项目下的gitconfig
git config --system user.name "ZZZ"
系统通用配置文件

git config --global|system|local --get user.name -> XXX
git config user.name 简写