问题:Clone failed: Authentication failed for 'https://gitee.com/Aplomb/NewDemo.git/'
刚刚入职新公司,使用的是新电脑,不是自己的,使用git clone 项目报这个错误
原因:因为在这个电脑上没有配置自己的用户名和邮箱,但之前默认已经配置了,所以要更改之前的配置
解决方案:在命令行里输入 git config --system --unset credential.helper 回车
然后在 git clone 加 url ,就会提示让你输入用户名和密码
配置用户名和邮箱 :git config --global user.name "xxx"
git config --global user.email "[email protected]"