用了新的电脑需要切换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凭据
原文链接:https://doubaoyuanma.com/blog/git%e5%88%87%e6%8d%a2%e8%b4%a6%e5%8f%b7,转载请注明出处。
评论0