采用开源git项目,二次开发,并保持与开源项目代码更新,如下操作,解决同步和二开同步问题。
1. 在github 或者gitee上 创建自己的git项目,比如为 new_foraps

2. 下拉原项目比如为 source_forasp 到本地, 并 添加官方仓库作为 upstream
git clone ssh://github.com/官方/source_forasp.git
cd source_forasp
git remote rename origin upstream


3. 添加自己的项目地址为源地址

git remote add origin git@github.com:你的账号/new_foraps.git

4. 推送当前代码 到自己到仓库地址
git push -u origin main

推送后现在逻辑
origin(你的仓库)
    Private

upstream(官方)
    Public

5. 同步官方
git fetch upstream
git checkout main
git merge upstream/main
git push origin main

6. 如果自己创建分支,可以直接创建并 作为修改分支。