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 的秘钥中,保存。

相关推荐
橙露7 小时前
git简明教程以及资源分享
大数据·git
codigger13 小时前
别再靠"最终版-改"活下去了:一篇讲透 Git 与 GitHub
git·程序员·github·编程·控制版本
JustNow_Man16 小时前
【Harness】本地文本向量化搜索解决方案--qmd
git·python·算法
香吧香16 小时前
GitHub Actions 详解
git
Madison-No717 小时前
Git版本控制工具(三)
git
可乐_不渴2 天前
【Linux】 项目自动化构建工具makefile&& 版本管理Git&&第一个程序
linux·git·自动化·1024程序员节
lzx_0022 天前
Linux 开发工具(六) 版本管理器git的简单使用
git·1024程序员节
jiangliushi62 天前
GPT-6.1 Sol 免费用:git status 里中文文件名变成一串数字乱?条命令改好
git·codex·1024程序员节
import_random2 天前
[git]只有git,没有github, 如何工作
git·github
import_random2 天前
[git]先创建远程仓库or先创建本地项目
git·github