使用git上传码云仓库失败

Posted big--bear

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用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, 问题得到解决

 

 

 

   

以上是关于使用git上传码云仓库失败的主要内容,如果未能解决你的问题,请参考以下文章

上传代码到码云(私有仓库)详细步骤

上传代码到码云(私有仓库)详细步骤

git 上传文件到 gitee 码云远程仓库

git 添加码云远程仓库和上传到码云的命令

怎么用git把文档文档上传到码云上

git:将代码提交到远程仓库(码云)