Git配置用户名和密码

1.查看git的配置列表

git config --list

全局变量:所有项目

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

局部变量:当前项目

git config  user.name  "username"  
git config  user.email  "email"

2.修改已配置的信息

git config --replace-all user.name "name"
git config --replace-all user.email "[email protected]"

猜你喜欢

转载自www.cnblogs.com/brithToSpring/p/13207597.html