git checkout --theirs cpp_lib
git add cpp_lib
git rebase --continue
Reset the submodule reference to the upstream version
git checkout --theirs cpp_lib
Mark the conflict as resolved
git add cpp_lib
Continue the rebase
git rebase --continue