git add submodule first to the submodule you want to add, git init, add remote and pushgo back to the parent folder, git submodule add ./your_submodule GITHUB 2024-01-07 198 点赞 3 评论 300 浏览