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 161 点赞 2 评论 243 浏览