【C++】通过 Git 访问阿里云 Codeup 仓库

配置 SSH 密钥(一劳永逸,免密码)

1、在新电脑生成 SSH 密钥

打开 Git Bash(Windows)或终端(Mac/Linux),执行:bash运行ssh-keygen -t ed25519 -C "your_email@example.com"

一路回车,默认保存到 ~/.ssh/id_ed25519。

2、将公钥添加到 Codeup

打开公钥文件:

Windows:C:\Users\你的用户名\.ssh\id_ed25519.pub

Mac/Linux:~/.ssh/id_ed25519.pub

复制全部内容 → Codeup → 个人设置 →「SSH 密钥」→「添加 SSH 密钥」,粘贴并保存。

3、用 SSH 地址克隆

回到 Codeup 仓库,复制 SSH 地址(格式:git@codeup.aliyun.com:xxx/xxx.git)

在 VS 或 Git Bash 中执行: git clone git@codeup.aliyun.com:xxx/xxx.git

相关推荐
noravinsc15 小时前
关于Git Flow
git
Database_Cool_16 小时前
什么是数据仓库物化视图?AnalyticDB MySQL 实时物化视图能力解析
人工智能·mysql·阿里云
蜜獾云16 小时前
在Git中配置用户名和密码
git
Database_Cool_16 小时前
大规模数据分析降本指南:AnalyticDB Serverless 弹性架构实战
数据仓库·阿里云·架构·数据分析·serverless
tiancaijiben17 小时前
阿里云Kubernetes集群托管完全指南:从创建到生产级运维
云计算
scx_link18 小时前
通过git bash在本地创建分支,并推送到远程仓库中
开发语言·git·bash
我是小bā吖18 小时前
Claude Code 模型接入阿里云 AI 网关并统计不同使用者的模型用量
网络·人工智能·阿里云
南大白19 小时前
IntelliJ IDEA 运行时的 JVM 本地内存溢出崩溃
git
码农小旋风20 小时前
Claude Code 基础用法大全:对话、分析、修改、测试、Git 和工作流
人工智能·git·chatgpt·claude
南大白20 小时前
Git 撤回提交完整方案
git