git无法克隆

报错

Cloning into 'back-end-of-western-restaurant'... git@gitee.com: Permission denied (publickey). fatal: fatal: Could not read from remote repository.

原因是没有配置好ssh公钥

解决:

首先根据提示生成RSA密钥

复制代码
ssh-keygen -t rsa

然后获取RSA公钥内容

复制代码
cat ~/.ssh/id_rsa.pub

然后把生成的公钥内容粘贴到gitee的SSH内

点击保存,再用git的ssh通道克隆项目,就成功了

相关推荐
BIBI204929 分钟前
换 Git 托管平台怎么做?基于 TortoiseGit 的跨平台迁移教程
windows·git·tortoisegit·问题解决·版本控制·最佳实践
echome8888 小时前
Git 日常救急:撤销提交、找回误删文件和解决冲突
git·版本控制
赵民勇13 小时前
Git命令详解
git
不老刘1 天前
Antigravity 的 New Worktree 模式:给 AI 代理一个安全的“平行工位”
人工智能·git·ai编程·antigravity
光谱SpectrAI1 天前
Windows 也中招:Git Bash 和 Node 仍信任泄露的 eMudhra 证书
git
YIN_尹1 天前
【git原理与使用】git初识与安装
大数据·git·elasticsearch
Leo_Mr2 天前
Vue3 项目配置 Git 提交规范(企业通用方案:husky + commitlint + cz-git + lint-staged)
git
jyOverQ2 天前
Git rebase 和 merge 有什么区别?什么时候该用哪个?
git
晗夜未央2 天前
跨仓库 Skill 换台电脑就失效?用 Git remote 校验项目
人工智能·git·python
Lsetea2 天前
Git访问HTTPS证书不受信任:用URL级sslCAInfo限定私有CA范围
git·https·开发工具·ssl证书·ca证书