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

相关推荐
火车叼位10 小时前
用脚本固化 Git Squash 合并与文件排除流程
git
wunaiqiezixin12 小时前
git常用命令总结
git
Pluchon17 小时前
萌萌技术分享笔记——Java综合项目
java·开发语言·笔记·git·github·mybatis·postman
九思x18 小时前
Git脚本汇总
git
jiayong2318 小时前
git分支合并的切换逻辑详解
git
思麟呀19 小时前
Git入门
git
Ws_19 小时前
Git + Gerrit 第八课:reset 与 revert 撤销提交
git
Qres82119 小时前
hexo博客上传github page
git·github·hexo
繁星星繁19 小时前
Git 入门之道:从版本流转到基础操作
大数据·git·elasticsearch
wh_xia_jun1 天前
Git 分支合并操作备忘录
git