Git删除仓库历史提交记录
切换到新的分支: git checkout --orphan branch 缓存所有文件: git add -A 添加备注信息: git commit -m "Initial commit" 删除master分支: git branch -D master 重命名“branch”分支: git branch -m master 提交分支: git push -f origin master 查看提交记录: git log …
切换到新的分支: git checkout --orphan branch 缓存所有文件: git add -A 添加备注信息: git commit -m "Initial commit" 删除master分支: git branch -D master 重命名“branch”分支: git branch -m master 提交分支: git push -f origin master 查看提交记录: git log …
自从将文章配图格式转换为WebP后,附件目录体积减小了一大半,转换方法可参考我之前发表的一篇教程:WordPress支持WebP格式图片上传方法 有时候为了教程更直观,将一些操作步骤 …
确定代码正常,即使测试Bootstrap官方文档中的演示动画也不滚动,使用Chrome、Fifefox问题依然,所以最后只能怀疑系统问题。 在Zorin OS官网提交了反馈,担心得不到 …
七牛云存储官方提供了Windows、MacOS和Linux平台的客户端,我是在Zorin OS上使用的,但我想配置方法是相同的,其他平台的朋友也可以参考这个教程。 七牛云存储客户端下载 …
在保存文章的时候,WordPress会自动过滤文章内容中的链接,具有target属性的链接会自动添加rel=”noopener noreferrer”,该属性是为了预防跨站攻击,站内 …
Zorin,中文名称左邻,是由爱尔兰的高新电子科技公司开发,基于Ubuntu。Zorin OS小巧漂亮,每一个细节都做得很精致,我使用过Linux Mint、Manjaro、Eleme …
VSCode是一款跨平台的代码编辑器,目前非常受欢迎,最近我也将VSCode作为主要开发工具。 默认设置下,VSCode行号区域的背景色与代码编辑区相同,如果代码前有空格,不太容易区 …
XAMPP启动提示netstat: command not found: XAMPP: Starting Apache.../opt/lampp/share/xampp/xampplib: line 22: netstat: command not found /opt/lampp/share/xampp/xampplib: line 22: netstat: command not found ok. XAMPP: Starting MySQL.../opt/lampp/share/xampp/xampplib: line 22: netstat: command not found ok. XAMPP: Starting ProFTPD.../opt/lampp/share/xampp/xampplib: line 22: netstat: command not found ok. 安装netstat解决: sudo apt install net-tools …
Redshift是Ubuntu下非常好用的护眼软件,默认的色温设置值为6500K,对于长时间在电脑前工作的我来说,这个色温仍然显得太刺眼,于是通过redshift.conf来进行配 …
在VirtualBox里,默认不挂载U盘,需要先将用户添加到Vbox用户组: sudo adduser 用户名 vboxusers 将用户名替换成你的电脑用户账号。 然后安装扩展: sudo apt-get install virtualbox-ext-pack 重启虚拟机后就可以挂载USB设备了: …