laravel 如何将忽略的供应商文件夹上传到 Git?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39589345/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to upload ignored vendor folder to Git?
提问by redshot
I am using lavalite(Laravel) as the CMS. I updated the home.blade.php to change the layout and wordings of texts. Home.blade.php is located in /resources/views/vendor/user/public/admin/home.blade.php
我使用 lavalite(Laravel) 作为 CMS。我更新了 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.
请帮忙。
回答by ElpieKay
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. git status --ignored
can list the ignored files.
如果您不想修改.gitignore
或其他忽略的东西,您可以简单地运行git add -f -- <path>
以强制添加忽略的路径。git status --ignored
可以列出被忽略的文件。
回答by Alexey Mezenin
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).
或者,如果您有vendor/
线路,.gitignore
您可以尝试删除它,但保留/vendor
线路(/
在开始时)。
回答by Python_96
Go to folder project and search .gitignore file. Open .gitingore and delete the path of folder.
转到文件夹项目并搜索 .gitignore 文件。打开 .gitingore 并删除文件夹的路径。