Git - 文件夹未推送到回购
Git - folder not pushed to repo
我一直在尝试将整个文件夹推送到我在 Bitbucket 上的存储库中,当我查看源代码时,我一直在关注:
我还检查了提交,发现它是空的,没有被推送。由于克隆,该文件夹最初被命名为 ChartNew.js,因此我尝试多次重命名它,但我仍然遇到这个问题。
知道我该如何解决这个问题。
更新:
所以我尝试了 No submodule mapping found in .gitmodules for path and missing .gitmodules file 中的第二个答案,是的,文件夹已成功删除。我克隆了 Charts 存储库以重做推送我的存储库,但后来我再次遇到同样的问题,并且出现了上面屏幕截图中的同样问题。 :/
那些是子模块条目。
它们被称为推送回购的 gitlink, special entries in the index。
创建一个子模块来记录子仓库的特定 SHA1:参见“”。
如果 .gitmodule
不再在回购中,则需要删除这些 gitlinks:
git rm ChartNewjs # no trailing /
git rm Charts
git add -A .
git commit -m "remove gitlinks submodules"
git push
omarsafwany suggests in the edit revision:
In case git rm
didn't remove anything, then check the the answer "No submodule mapping found in .gitmodule
for a path that's not a submodule", in order to remove, then proceed with the above instructions.
我一直在尝试将整个文件夹推送到我在 Bitbucket 上的存储库中,当我查看源代码时,我一直在关注:
我还检查了提交,发现它是空的,没有被推送。由于克隆,该文件夹最初被命名为 ChartNew.js,因此我尝试多次重命名它,但我仍然遇到这个问题。
知道我该如何解决这个问题。
更新:
所以我尝试了 No submodule mapping found in .gitmodules for path and missing .gitmodules file 中的第二个答案,是的,文件夹已成功删除。我克隆了 Charts 存储库以重做推送我的存储库,但后来我再次遇到同样的问题,并且出现了上面屏幕截图中的同样问题。 :/
那些是子模块条目。
它们被称为推送回购的 gitlink, special entries in the index。
创建一个子模块来记录子仓库的特定 SHA1:参见“
如果 .gitmodule
不再在回购中,则需要删除这些 gitlinks:
git rm ChartNewjs # no trailing /
git rm Charts
git add -A .
git commit -m "remove gitlinks submodules"
git push
omarsafwany suggests in the edit revision:
In case
git rm
didn't remove anything, then check the the answer "No submodule mapping found in.gitmodule
for a path that's not a submodule", in order to remove, then proceed with the above instructions.