openclaw 的github项目同步到gitee仓库

D:\source\openclaw是github开源项目目录,

D:\source\m-openclaw是gitee项目目录,

我之前把github项目的main分支和tags同步到了gitee项目过一次,现在需要再同步一次,请告诉我如何操作

情况清楚了。两个独立仓库,同步步骤如下:


方案:从 GitHub 拉取,推送到 Gitee

步骤1:在 GitHub 仓库目录拉取最新内容

powershell 复制代码
cd D:\source\openclaw
git fetch origin
git pull origin main

步骤2:进入 Gitee 仓库,添加 GitHub 为上游(如果还没有)

powershell 复制代码
cd D:\source\m-openclaw
git remote add upstream git@github.com:openclaw/openclaw.git

如果之前已经加过了,跳过这步(会报 "already exists")

步骤3:从 GitHub 拉取最新代码和 tags

powershell 复制代码
git fetch upstream
git fetch upstream --tags

步骤4:同步 main 分支

powershell 复制代码
git checkout main
git merge upstream/main
# 或者强制覆盖(如果 Gitee 仓库没有独立改动):
# git reset --hard upstream/main

步骤5:推送到 Gitee(含 tags)

powershell 复制代码
git push origin main
git push origin --tags

也可以一步到位(如果 Gitee 没有独立改动)

直接在 Gitee 仓库目录执行:

powershell 复制代码
cd D:\source\m-openclaw
git fetch upstream
git fetch upstream --tags
git checkout main
git reset --hard upstream/main
git push origin main --force
git push origin --tags

相关推荐
极光技术熊12 小时前
Spring AI 从入门到精通:构建你的 AI 开发知识体系
后端·github
用户394839510755313 小时前
怎么让我的 Agent 真正"懂"我?——关于记忆、经验学习与预测的一些真实体验
github
远航_19 小时前
git submodule
前端·后端·github
fthux21 小时前
如果你用 Mac,那你可能需要 Noti Shift
macos·开源·github
程序员天天困2 天前
Loop Engineering 实战:/goal 命令让 AI 自己写完整项目
github
徐小夕2 天前
我们开源了一款“框架无关”的思维导图编辑器,3分钟集成到任意系统
前端·javascript·github
小爷毛毛_卓寿杰2 天前
我把 397B 的「Agentic 大脑」塞进了 Xinference,一键部署 Nex-N2
人工智能·架构·github
小爷毛毛_卓寿杰2 天前
我把一个 3B 模型塞进了 Xinference,然后它干掉了 DeepSeek V3.2
人工智能·开源·github
凌奕2 天前
别用文档约束你的 Agent:聊聊 Agent 开发流程的思想
llm·github·agent
HelloGitHub2 天前
《HelloGitHub》第 123 期
开源·github