我正在使用Laravel 5.8,这两个文件经常显示在我的git status上。
git status
我应该将它们添加到。gitignore吗?
在文件夹bootstrap/cache中应该已经有一个包含以下几行的.gitignore文件:
bootstrap/cache
.gitignore
* !.gitignore
此文件将解决您的问题
您应该始终.gitignore缓存文件,但绝不打算到达实际的生产服务器。
因此,在.gitignore文件夹中创建一个bootstrap/cache文件,并放置以下两行:
请记住,您可能必须先删除文件并进行git push,然后才能真正忽略它们。