分类: linux
unserialize(): Error at offset 0 of 10898 bytes
thinkphp5 unserialize(): Error at offset 0 of 932 bytes
ThinkPHP5框架
该问题一般是用了git导致的
方案一
在thinkphp\library\think\cache\driver\Flie.p……
git 取消文件追踪/撤销git commit暂存区文件/.gitignore文件
1.取消文件追踪
对某个文件取消追踪
git rm -r --cached a.txt //删除a.txt的跟踪,并保留在本地
git rm -r --f a.txt //删除a.txt的跟踪,并且删除本地文……
码云webhook+fasadmin的webhook插件实现代码自动更新仓库代码到站点(自动同步码云仓库代码到网站)
场景:使用fasadmin 开发的小伙伴
1、在fasadmin插件管里中安装Web Hook 插件
2、Webhook设置的请求地址是什么? 请求地址设置为:http[s]://你的域名/addons……
.gitignore文件不生效(git第一次没忽略的情况)
把某些目录或文件加入忽略规则,按照上述方法定义后发现并未生效,原因是.gitignore只能忽略那些原来没有被追踪的文件,如果某些文件已经被纳入了版本管理中,……
error: Your local changes to the following files would be overwritten by merge 解决方案
一、背景
团队其他成员修改了某文件并已提交入库,你在pull之前修改了本地该文件,等你修改完代码再pull时,这时会报错如下错误:
error: Your local changes ……
gitlab自动同步代码到web站点
备注:还未亲自测试,但感觉可行!
1、进入网站目录,克隆仓库代码
1
2
3
4
cd /www/wwwroot/
git clone http://192.168.3.141:8099/liujuncheng/test.gi……
码云WebHook使用(还未实际测试,但觉得可行)
环境说明:
服务器: centos7 + 宝塔
gitee
一. 在gitee上新建仓库
二. 在宝塔面板上安装“宝塔webhook”软件
三. 在服务器上配置 gitee SSH公钥
四. 点击“宝塔w……
fatal: could not read Username for 'https://gitee.com': No such device or address
问题
copyfatal: could not read Username for 'https://gitee.com': No such device or address
这是因为git config文件中没有用户身份信息。
解决方法
……
git中报unable to auto-detect email address 错误的解决拌办法
昨天刚配置好的git,今天刚要commit一些修改,就遇到了这个问题
** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git ……
CentOS上安装git
一、使用yum进行安装
1、安装git:yum install git
2、查看yum源仓库Git信息:yum info git
3、安装依赖库:yum install curl-devel expat-devel gettext-deve……