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

相关推荐
刘较瘦_1 小时前
AI 开发中的 Git Submodule 父子仓库模式:前后端分仓管理与协作实践
前端·github
DeMinds4 小时前
内容没有丢,我为什么总在重新整理?|DeMinds 如何让工作接着继续
ios·github·markdown
寒水馨4 小时前
macOS下载、安装openclaw-v2026.7.1(附安装包OpenClaw-2026.7.1.dmg)
macos·大模型·github·开源软件·ai助手·openclaw·gpt-5.6
徐小夕5 小时前
花了3天,我写了一款开源AI公众号编辑器
前端·vue.js·github
CCPC不拿奖不改名21 小时前
大模型推理架构与开源生态知识整理
数据库·windows·python·架构·langchain·开源·github
redreamSo1 天前
一天涨 1800 星的 GitHub 榜首:AI 编程瓶颈变成了 token
人工智能·开源·github
逛逛GitHub1 天前
盘点 18 个 Kimi K3 外网爆火的案例,太令人惊艳了。
github
benchmark_cc1 天前
如何用 Python 进行多周期 K 线合成与时区对齐?基于 QuantDash 与 Pandas 的量化数据清洗实战(附 GitHub 源码)
开发语言·python·github·盯盘·pandas·quantdash·量化数据
luyingying1 天前
从 400 行到 30 个文件,我只做了一件事
github