使用git上传码云仓库失败

remote: Incorrect username or password ( access token )
fatal: Authentication failed for 'https://gitee.com/***/***.git/

1. 解决办法 清除本地的gitee的账号

git config --system --unset credential.helper

2. 若使用上面的命令报错后,

  

error: could not lock config file C:/Program Files/Git/mingw64/etc/gitconfig: Permission d
enied 

  

3. 找到对应的文件  C:/Program Files/Git/mingw64/etc/, 配置

  

 4. 再次执行git config --system --unset credential.helper, 问题得到解决

   

猜你喜欢

转载自www.cnblogs.com/big--Bear/p/12915943.html
今日推荐