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 120 点赞 1 评论 181 浏览