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

如何添加 JoyandAI 仓库

以 lerobot 项目为例

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

1. 添加 JoyandAI 远程仓库

1.1 增加 JoyandAI 仓库

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

1.2 拉取分支到本地

git fetch joyandai main

1.3 checkout 到该分支

git checkout joyandai/main

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

2.1 切换到 main 分支

git checkout main

2.2 合并 joyandai/main

git merge joyandai/main