Git

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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。