Git安装配置
Git安装
sudo apt-get install git //Linux
brew install git //Mac OS
Git初始配置
git config --global user.name "${name}"
git config --global user.email "${email}"
跟踪文件
git update-index --assume-unchanged ${file} //忽略跟踪
git update-index --no-assume-unchanged ${file} //恢复跟踪
git config
git config --global user.name "${name}"
git config --global user.email "${email}"
git config --${key} --list // 展示key的信息
git config --list 展示所有信息
git config --global core.editor ${editor} //${editor, eg: emacs}
git config --${key} //${key} 可以为system/global/local,其影响范围是依次下降的,一般实用global
网友评论