将子模块合并到特定版本与我的旧版本子模块

merge submodule till specific version with my older version submodule

我想合并一个子模块直到特定提交与我提交的旧版本子模块不希望它被删除

对我来说效果最好的解决方案是

git fetch

   git checkout FETCHED_HEAD

    git checkout -b newbranch commitSHA1
    git checkout master
    git merge newbranch