git拉取报错问题

问题描述:

克隆指令:

git clone git@igit.xxxxcorp.com:ai_group/corp-workspace.git

报错:

$ git clone git@igit.xxxxcorp.com:ai_group/corp-workspace.git

Cloning into 'corp-workspace'...

git@igit.xxxxcorp.com's password:

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

首先,设置用户名和邮箱

复制代码
git config --global user.name "你的名字"
git config --global user.email "你的公司邮箱"
#查看
git config --list

其次,生成公钥,匹配公钥

复制代码
#通过命令 ssh-keygen 生成 SSH Key:
ssh-keygen -t ed25519 -C "Gitee SSH Key"

查询密钥文件

复制代码
ls ~/.ssh/

读取公钥文件:

复制代码
cat ~/.ssh/id_ed25519.pub
#例 ssh-ed25519 AAAA***5B Gitee SSH Key

将公钥写入 igit 的秘钥中,保存。

相关推荐
为思念酝酿的痛1 天前
Git基本操作
git·github
wno7042 天前
常用的Git命令清单
大数据·git·elasticsearch
真上帝的左手3 天前
3. 代码管理-Git-进阶
git·源代码管理
YIN_尹3 天前
【git原理与使用】git基本操作及底层原理(二)
大数据·git·elasticsearch
程序员爱德华3 天前
Git 命令
git
Cry丶4 天前
Git Rebase 操作备忘
git·rebase
你叶不叶4 天前
abap git 如何从 gitee上在线拉取数据(上一步已经配置好证书)
git·gitee·sap·abapgit
kuroomi5 天前
Git入门
git·kubernetes
daliucheng5 天前
lazygit 上手:日常 git 操作一篇讲完
git
codigger5 天前
大厂git提交规范
git·程序员