简体   繁体   English

如何将忽略的供应商文件夹上传到Git?

[英]How to upload ignored vendor folder to Git?

I am using lavalite(Laravel) as the CMS. 我使用lavalite(Laravel)作为CMS。 I updated the home.blade.php to change the layout and wordings of texts. 我更新了home.blade.php以更改文本的布局和措辞。 Home.blade.php is located in /resources/views/vendor/user/public/admin/home.blade.php Home.blade.php位于/resources/views/vendor/user/public/admin/home.blade.php

After updating this file, it is not detected by Git and I cannot upload it to a remote repository. 更新此文件后,Git无法检测到它,我无法将其上传到远程存储库。

How to disable ignored folder? 如何禁用被忽略的文件夹?

Please help. 请帮忙。

If you don't want to modify .gitignore or other ignore things, you can simply run git add -f -- <path> to add the ignored path by force. 如果你不想修改.gitignore或其他忽略的东西,你可以简单地运行git add -f -- <path>来强制添加被忽略的路径。 git status --ignored can list the ignored files. git status --ignored可以列出被忽略的文件。

First thing you should do is check .gitingore file for resources/views/vendor folder. 您应该做的第一件事是检查.gitingore文件中的resources/views/vendor文件夹。

Or if you have vendor/ line in .gitignore you can try to delete it, but keep /vendor line (with / in the beginnig). 或者,如果您在.gitignorevendor/行,您可以尝试删除它,但保留/vendor商行(使用/在beginnig中)。

Go to folder project and search .gitignore file. 转到文件夹项目并搜索.gitignore文件。 Open .gitingore and delete the path of folder. 打开.gitingore并删除文件夹的路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM