[已解决]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 ...
随机推荐
- XP系统显示控件异常解决方法
XP下显示WPF控件异常,一般通过关闭Direct 3D加速即可.1.按“WIN”+R键,在“运行”输入框中输入“dxdiag”:2.在DirectX诊断工具”对话框,选择“显示”页面,在“Direc ...
- 设置a 标签打开新窗口新姿势
设置页面中的所有a标签都打开新窗口 1,在写的时候就加上target="_blank" 2,在页头<head></head>里加上 <base tar ...
- Swift协议中类继承协议的mutating问题
之前实际开发的时候遇到的一个小问题,网上也没有找到相关说明.本来当时弄明白了想着记下来的,但是比较忙就耽搁了,趁今天休息记录一下. 首先,我们看一下下面这个两数之和的协议 protocol Test: ...
- HDU - 1099 - Lottery - 概率dp
http://acm.hdu.edu.cn/showproblem.php?pid=1099 最最简单的概率dp,完全是等概率转移. 设dp[i]为已有i张票,还需要抽几次才能集齐的期望. 那么dp[ ...
- HDU 1556【线段树区间更新】
这篇lazy讲的很棒: https://www.douban.com/note/273509745/ if(tree[rt].l == l && r == tree[rt].r) 这里 ...
- 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 ...
- centos 7.3 安装vmtools,解决无法编译共享文件夹模块
环境说明: vmware 12.5.0 build-4352439 centos 7.3.1611 64位,内核版本:Linux version 3.10.0-514.16.1.el7.x86_6 ...
- PL/SQL基础知识
Oracle之PL/SQL学习笔记 自己在学习Oracle是做的笔记及实验代码记录,内容挺全的,也挺详细,发篇博文分享给需要的朋友,共有1w多字的学习笔记吧.是以前做的,一直在压箱底,今天拿出来整理了 ...
- Linux —— 常用命令集合
关机和重启命令 shutdown [选项] 时间 (添加&,把关机任务放在后台执行) 只有shutdown可以保存关机时资源 操作选项 重启: r 关机: h 取消一个关机任务: c 关机命令 ...
- linux系统下安装PHP扩展pcntl
1.查看当前的PHP版本并下载一个同样版本的php(我的是php5.6.22,我下的是php5.6.22) wget http://hk1.php.net/get/php-5.5.10.tar.gz ...