从 GitLab 迁移项目到 Gitee完整迁移方案
1、先建文件夹——>打开终端
2、# 克隆命令(保持不变)
git clone --mirror https://git-open.hancode.com/YuYang/yymes-api.git
git clone --mirror https://git-open.hancode.com/YuYang/yymes-app.git
git clone --mirror https://git-open.hancode.com/YuYang/yymes-front.git
3、配置 Gitee SSH 公钥(推荐长期使用)
生成新密钥(如果没有)
ssh-keygen -t ed25519 -C "你的Gitee注册邮箱"
查看公钥内容
cat ~/.ssh/id_ed25519.pub
在 Gitee 中添加公钥
登录 Gitee → 右上角头像 → 设置 → SSH 公钥
粘贴公钥,填写标题(如 Work PC),点击确定
4、# 添加 Gitee 仓库为新远程(替换为你的 Gitee 地址)
git remote add gitee https://gitee.com/tang-junee/yymes-api.git
git remote add gitee https://gitee.com/tang-junee/yymes-app.git
git remote add gitee https://gitee.com/tang-junee/yymes-front.git
5、推送代码
git push --mirror gitee

浙公网安备 33010602011771号