无法推送目录
unable to push directory
我正在使用 gitlab 来托管我的项目,我正在使用 symfony 开发一个 web 应用程序,我使用 composer 添加了一个包,当然 composer 下载了包并将其放在 /vendor
下(对于我案例,对于此捆绑包,其 vendor\nomaya\social-bundle\Nomaya\
).
现在我提交和推送项目时,通常会推送整个项目(包括/vendor
,我从gitignore中删除了它)。
但是对于这个特定的包,我无法推送 SocialBundle
文件夹(位于 Nomya
文件夹内)。
所以当我检查 GitLab 时,发现它以某种方式创建了一个名为 SocialBundle
的存档文件,我无法手动删除它,并且在我拉动时它也没有被拉动。
那么我怎样才能删除这个存档并拉出我的目录呢?
it somehow created an archive file named SocialBundle,
它不是存档,而是 gitlink (a special entry in the index,代表嵌套 git 存储库的 SHA1:您的存储库中的一个存储库)
and I cant removed manually:
git pull
# No trailing slash: you are not removing a folder, but an entry in your index.
git rm SocialBundle
git commit -m "remove gitlink"
git push
(然后再试一次,包括您的捆绑包)
and it does not get pulled when I pull
因为它不是 submodule(其中嵌套回购的 url 将在 .gitmodule
中注册),所有 git 具有的是 SHA1一个它不知道 url of.
的 repo
这就是条目保持为空的原因。
我正在使用 gitlab 来托管我的项目,我正在使用 symfony 开发一个 web 应用程序,我使用 composer 添加了一个包,当然 composer 下载了包并将其放在 /vendor
下(对于我案例,对于此捆绑包,其 vendor\nomaya\social-bundle\Nomaya\
).
现在我提交和推送项目时,通常会推送整个项目(包括/vendor
,我从gitignore中删除了它)。
但是对于这个特定的包,我无法推送 SocialBundle
文件夹(位于 Nomya
文件夹内)。
所以当我检查 GitLab 时,发现它以某种方式创建了一个名为 SocialBundle
的存档文件,我无法手动删除它,并且在我拉动时它也没有被拉动。
那么我怎样才能删除这个存档并拉出我的目录呢?
it somehow created an archive file named SocialBundle,
它不是存档,而是 gitlink (a special entry in the index,代表嵌套 git 存储库的 SHA1:您的存储库中的一个存储库)
and I cant removed manually:
git pull
# No trailing slash: you are not removing a folder, but an entry in your index.
git rm SocialBundle
git commit -m "remove gitlink"
git push
(然后再试一次,包括您的捆绑包)
and it does not get pulled when I pull
因为它不是 submodule(其中嵌套回购的 url 将在 .gitmodule
中注册),所有 git 具有的是 SHA1一个它不知道 url of.
的 repo
这就是条目保持为空的原因。