Git切换账号

用了新的电脑需要切换git到自己的账户

win+R 输入 CMD 后运行以下命令

查看用户名:

git config user.name

查看用户邮箱:

git config user.email

修改用户名和邮箱,user.name/email后面千万记得加空格

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

Git Bash输错账号密码重新输入

1.打开控制面板(快捷打开win+R,输入control)

2.点击用户账户

3.点击管理你的凭据

4.点击windows凭据修改或者删除git凭据

8a66ea6920426bacbf143bd624c2e527

原文链接:https://doubaoyuanma.com/blog/git%e5%88%87%e6%8d%a2%e8%b4%a6%e5%8f%b7,转载请注明出处。

0

评论0

显示验证码
没有账号? 注册  忘记密码?