知识库/参考文档/如何添加 JoyandAI 仓库

如何添加 JoyandAI 仓库

以 lerobot 项目为例。假设已经 clone lerobot 官方仓库 https://github.com/huggingface/lerobot.git,一般为 origin。

1. 添加 JoyandAI 远程仓库

1.1 增加 JoyandAI 仓库

bash
git remote add joyandai https://github.com/JoyandAI/lerobot.git

1.2 拉取分支到本地

bash
git fetch joyandai main

1.3 checkout 到该分支

bash
git checkout joyandai/main

2. 如果要合并修改提交到 main 分支

2.1 切换到 main 分支

bash
git checkout main

2.2 合并 joyandai/main

bash
git merge joyandai/main