修改了很多文件,还没有push到远程仓库,这时候想恢复几个文件或目录的修改。 只是修改了文件 还没有git add git checkout — file.txt # file.txt为文件名,也可以是目录 修改了文件,并提交到暂存区 编辑之后,已经运行了git add 但还没有运行 git commit -m …的情况 git reset HEAD # 回退到当前版本 git checkout […]
阿里iconfont字体图标的使用
iconfont 为大家提供了很多开箱即用的图标库,同时也提供了灵活的集成办法。 在一个项目中嵌入你想要iconfont字体图标,跟着下面的步骤一步步来实践一下: 创建项目 在 iconfont 的【资源管理 => 我的项目】中创建一个项目,取个名字,字体格式根据需求选择,一般就默认加上一个Base64。 将图标添加到项目 方法就是在素材库中搜索想要的图标,然后点图标上的购物车图标(添加入库),然 […]
composer 出现 “Fatal error: Allowed memory size of * bytes exhausted (tried to allocate 4096 bytes) …”
在使用composer时出现内存超出限制错误: PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://D:/xampp/php/composer.phar/src/Composer/DependencyResolver/RuleSetGe […]
golang笔记:json格式的使用
在golang中处理json使用内置的encoding/json标准库。下面示例介绍了通过map和结构体struct编码json,以及解析json到结构体中。 json encode 编码json使用json.Marshal()函数可以对一组数据进行JSON格式的编码。 package main import ( “encoding/json” “fmt” ) type Person struct […]
ThinkBook 14P 开机出现 “New CPU installed,fTPM NV corrupted or fTPM NV structure changed”
笔记本电脑 ThinkBook 14P 在使用没有任何异常的情况下正常关机,第二天早上开机过了 Lenovo Logo 图之后,弹出一个错误窗口: New CPU installed,fTPM NV corrupted or fTPM NV structure changed[/caption] 电脑配置 型号:ThinkBook 14P CPU:AMD Ryzen 7 580 […]
github报错”You’re using an RSA key with SHA-1, which is no longer allowed…“
今天从github拉取私有项目时,出现报错,内容如下: ERROR: You’re using an RSA key with SHA-1, which is no longer allowed. Please use a newer client or a different key type. Please see https://github.blog/2021-09-01-improvin […]