[已解决]gitee初次使用git clone报错
本文描述的错误按实际出现先后顺序排列,并且附上一些其他可能会出现的问题
错误1:
JZKJ@DESKTOP-I7Q9QJ4 MINGW64 ~
$ git clone https://gitee.com/moocang/005zhongbang-doc.git
Cloning into '005zhongbang-doc'...
remote: Incorrect username or password ( access token ) // 1
fatal: Authentication failed for 'https://gitee.com/moocang/005zhongbang-doc.git/'
原因分析和解决:
初次克隆gitee/git项目时,弹框提示输入账户和密码,如果操作失误导致账密输入错误,之后git bash提示错误但不再弹窗让再次输入账号密码。由于电脑凭证把第一次输入的账户密码记录了下来,导致后期一直错误。
需要修改账户名密码。
解决方式:
- Git Bash命令行
如果发生错误1.1,就是说没有对配置文件C:/Program Files/Git/mingw64/etc/gitconfig
的修改权限,因为它在C盘(系统盘)。
错误1.1:
JZKJ@DESKTOP-I7Q9QJ4 MINGW64 ~
$ git config --system --unset credential.helper
error: could not lock config file C:/Program Files/Git/mingw64/etc/gitconfig: Permission denied //2
这里要么在自己的电脑授权(较麻烦),要么用管理员身份打开Git Bash。
2. Windows 凭据
进入控制面板\所有控制面板项\凭据管理器
,找到普通凭据
下的gitee凭据
git:https://gitee.com
点下拉三角展开,编辑或删除用户名和密码组成的凭据。
错误2(错误1已解决):
无法更新本地库。
JZKJ@DESKTOP-I7Q9QJ4 MINGW64 ~
$ git clone https://gitee.com/moocang/005zhongbang-doc.git
Cloning into '005zhongbang-doc'...
remote: You do not have permission to pull from the repository via HTTPS // 2
fatal: Authentication failed for 'https://gitee.com/moocang/005zhongbang-doc.git/'
发生这个错误的原因有很多,这里是我的gitee账户不在仓库的SSH公钥列表里,没有pull权限,想管理员申请吧自己加入团队即可。
错误2主要有以下几种情况:
- 没有pull权限
- 要用ssh访问而不是https
- 凭据错误
可以参考这篇文章。
关于gitee的公钥管理可以参考官方文档,包括公钥管理‘、生成/添加SSH公钥、Git配置多个SSH-Key等内容。
[已解决]gitee初次使用git clone报错的更多相关文章
- centos git clone 报错 fatal: HTTP request failed 解决办法
git clone报错提示 git clone https://github.com/xxxx.git Initialized empty Git repository in /root/xxxx/. ...
- 使用git clone 报错curl56 errno 10054解决方法
使用git clone 报错curl56 errno 10054解决方法 ----------------版权声明:本文为CSDN博主「伽马射线爆」的原创文章,遵循CC 4.0 BY-SA版权协议,转 ...
- Git clone 报错 Unable to negotiate with xxx.xxx.xxx.xxx port 12345: no matching cipher found. Their offer: aes128-cbc,3des-cbc,blowfish-cbc
git clone 报错 Unable to negotiate with xxx.xxx.xxx.xxx. port 12345: no matching cipher found. Their o ...
- python进阶(六) 虚拟环境git clone报错解决办法
在虚拟环境目录,进行git clone xxxxx.git 项目,报如下图错误 解决办法:env GIT_SSL_NO_VERIFY=true git clone xxxx.git
- linux 下解决git clone报错
解决报错:error: The requested URL returned error: 401 Unauthorized while accessing 问题报错:error: The req ...
- git clone 报错 fatal: protocol 'https' is not supported 解决办法
版本:git 2.22.0 系统:win7旗舰版 先把https去掉 再把https加上 神奇的事情出现了,这样就可以了. 很多人都说这样解决了,原因不知道. Administrator@BWE8QX ...
- 码云git clone报错Incorrect username or password ( access token )
使用码云将仓库clone到本地,报错信息如下: D:\>git clone https://gitee.com/ycyzharry/helloworld.git Cloning into 'he ...
- git clone 报错Unable to negotiate with xxx.xxx.xxx.xxx port 12345: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
在执行git clone命令报错 Unable to negotiate with xxx.xxx.xxx.xxx port 12345: no matching key exchange metho ...
- Git clone 报错 128
使用tortoiseGit检出项目是报错,错误代码128: 使用git bash检出相同目录时返回 git clone fatal:destination path already exists an ...
随机推荐
- now code——处女座的期末复习
题目描述 快要期末考试了,处女座现在有n门课程需要考试,每一门课程需要花ai小时进行复习,考试的起始时间为bi,处女座为了考试可以不吃饭不睡觉,处女座想知道他能否复习完所有的科目(即在每一门考试之前复 ...
- Lightoj1084【DP啊DP】
题意: 给你n个人的位置,每个人最多移动k个单位,然后在某点>=3人可以抱团,问你这n个人最少抱团数,只要有一个n不能抱团输出-1: 思路: 感觉又是超级超级狗血.... 剪不断,理还乱... ...
- WinMain和main
WinMain的原型: int WINAPI WinMain(HINSTANCE hinstance,//程序本身的实例句柄 HINS ...
- Label-Free Proteomic Analysis of Exosomes Secreted from THP-1- Derived Macrophages Treated with IFN‑α Identifies Antiviral Proteins Enriched in Exosomes (文献分享一组-张霞)
文献名:Label-Free Proteomic Analysis of Exosomes Secreted from THP-1- Derived Macrophages Treated with ...
- Win7下Intellij开发Scala环境搭建
1.Scala下载并安装 1.Scala的安装时需要依赖JDK的,目前我的电脑上,jdk是已经安装好了,这里就不再说明 2.在地址http://www.scala-lang.org/download/ ...
- springMVC 类型转换
springMVC 类型转换 https://www.cnblogs.com/hafiz/p/5812873.html
- [软件工程基础]PhyLab 功能规格说明书
前言 Sigma 团队想要在 PhyLab 上做的增量改进见需求分析.六个功能中只有题库和图文流程需要对界面进行大的改动,剩下的功能在用户看来仅仅是在原有界面上有内容上的扩充,因此不在功能规格说明书的 ...
- 执行脚本 提示 command not found
问题现象: 初学shell,写了个脚本, 1.从windows 写好 脚本,然后部署到 linux 上. 2.chmod +x之后执行提示command not found,系统环境redhat9,用 ...
- sgu316Kalevich Strikes Back(线段树+扫描线)
做法:总体想法是求出一个矩形的面积以及它所包含的矩形,然后用自己的面积减掉所包含的.主要问题是怎样求解它所包含的矩形. 因为是没有相交点的,可以利用扫描线的方法去做,类似染色,当前段如果是x色,也就是 ...
- if __FILE__ == $0 end
if __FILE__ == $0 end __FILE__是一个“具有魔力”的变量,它代表了当前文件名.$0是用于启动程序的文件名.那么代码“if __FILE__ == $0”便意味着检查此文件是 ...