git config介绍

git config 命令


git config –global 和 git config –system 的区别

打开命令行,输入 git config --global --list  git config --system --list 
CMD 进入版本库位置,输入
git config --local --list

可知:
global 是全局配置文件 ,文件的位置在用户主目录下的.gitconfig文件
system 是系统配置文件,文件的位置在etc下的gitconfig
local是版本库配置文件,文件位置在.git/config
优先级是:local>global>system,而global存储的是提交用户的email和用户名,所以可手动设置config

git config --global user.name " "
git config --global user.email  " "

如果删除的话,可使用如下命令:

git config --unset --global user.name
git config --unset --global user.email
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值