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

相关推荐
叫我少年11 小时前
Windows 中安装 git
git
深海鱼在掘金6 天前
Git 完全指南 —— 第1章:Git 概览与版本控制演进
git
noravinsc6 天前
关于Git Flow
git
蜜獾云6 天前
在Git中配置用户名和密码
git
scx_link7 天前
通过git bash在本地创建分支,并推送到远程仓库中
开发语言·git·bash
南大白7 天前
IntelliJ IDEA 运行时的 JVM 本地内存溢出崩溃
git
码农小旋风7 天前
Claude Code 基础用法大全:对话、分析、修改、测试、Git 和工作流
人工智能·git·chatgpt·claude
南大白7 天前
Git 撤回提交完整方案
git
像风一样的男人@7 天前
python --实现代理服务器
git·ui
sbjdhjd7 天前
从零搭建企业级 CI/CD(下):Jenkins+GitLab+Harbor 全链路实战指南
git·servlet·ci/cd·云原生·云计算·gitlab·jenkins