Git

作者: 阳光丶不错 | 来源:发表于2018-01-19 16:36 被阅读0次

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

相关文章

网友评论

      本文标题:Git

      本文链接:https://www.haomeiwen.com/subject/hffaoxtx.html