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

相关推荐
徐小夕3 小时前
万字长文!千万级文档 RAG 知识库系统落地实践
前端·算法·github
用户279650435616 小时前
Narwhals:DataFrame 库的轻量兼容层
github
右耳朵猫AI8 小时前
GitHub周趋势2026W22 | AI编程工具、知识图谱、自托管、AI代理、代码智能
人工智能·github·ai编程
逻极8 小时前
Git 从入门到精通:版本控制协作实战指南
git·github·分支管理·版本控制
用户7459571748409 小时前
hug:写 Python API,几行代码就够了
github
DogDaoDao10 小时前
【GitHub】VoxCPM2 实战全解析:原理、部署与效果对比
深度学习·大模型·github·音频·语音模型·tss·文本生成语音
朱涛的自习室12 小时前
Munk AI 正式开源:一个“自我进化”的 AI 测试引擎
android·人工智能·github
lpfasd12313 小时前
2026年第23周GitHub趋势周报
github
Aliaoo13 小时前
GitHub Copilot 改按量计费 72 小时:$28→$746 的账单、暂停新注册,以及这对普通开发者意味着什么
github·copilot
撸码小狂魔14 小时前
GitLab CI/CD 使用指南(小白版)
github