首先回退版本:git reset --soft xxxx //xxxx 是版本号然后将修改的保存在 暂存区:git stash提交代码:gi...
git 移除已经添加到版本库中的文件
在开发中,不小心将数据库配置文件 database.php 加入到 git 版本中,那么如何移除呢?首先找到 .gitignore 文件,将文件路径写入:config/database.php接下来在...
ThinkPHP5 Redis::delete() is deprecated
在thinkphp5中将缓存引擎设置为Redis时,会提示报错,Function Redis::delete() is deprecated,原因是因为 redis 弃用了 delete 函数。可以直...
ThinkPHP利用phpOffice/Spreadsheet实现Excel导入数据(包含图片导入)以及实现字段对应
首先我们创建抽象工具类Import:namespace app\common\tool; abstract class Import { &nb...
Linux删除文件出现rm: cannot remove `.user.ini’: Operation not permitted
在服务器上删除文件目录时,有时候会提示:rm: cannot remove `.user.ini': Operation not permitted这时候需要使用到Linux的chattr命令...