Git配置用户名和密码

时间:2020-06-29 13:55:49   收藏:0   阅读:455

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 "123@qq.com"

 

原文:https://www.cnblogs.com/brithToSpring/p/13207597.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!