gpt4 book ai didi

git - 如何将子模块添加到github存储库

转载 作者:太空狗 更新时间:2023-10-29 14:43:48 33 4
gpt4 key购买 nike

你好,我正在寻找一种方法将我的子模块添加到我的 github 存储库中,例如

iris

https://github.com/kataras/iris

我试过了

git add *
git add .

然后提交并推送但文件夹保持为空(灰色)

我想添加这些子模块的原因是因为我想在 heroku 上部署我的应用程序。

但是由于子模块没有上传到我的 github 存储库中,我无法部署我的 heroku 应用程序,因为它从我的 github 存储库中丢失了它们。

任何关于如何将这些子模块添加到我的 repo 的想法都将不胜感激。

最佳答案

添加子模块的命令是

git submodule add <your another repo url>

引用git-submodule

关于git - 如何将子模块添加到github存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40753505/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com