摘要: 1.常用命令记录 git add 将文件从暂存区提交到历史记录 git stash 该命令可以将当前未 commit 的代码暂时存储起来,让当前工作目录变得干净 使用场景 当开发一个新的任务,写了不部分代码,此时有个 bug 需要修复,但是此时的新写的代码才写了一半,又不想提交无意义的 commit 阅读全文
posted @ 2023-03-30 19:21 晚安喵 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 使用 diffEditor 时,文档上获取 diff 未导出 // 在 6.0版本时会出现这个问题 import { diff as DiffEditor } from "react-ace"; // 文档错误写法 import DiffEditor from "react-ace/lib/diff 阅读全文
posted @ 2023-03-30 17:15 晚安喵 阅读(441) 评论(1) 推荐(0) 编辑
摘要: 包管理工具切换源 为何要切换 npm、yarn、pnpm 源? 由于默认的 npm,yarn 源是国外,访问速度很慢,因此选择国内镜像,加快下载安装速度,eg:切换为淘宝源或者公司内部源 pnpm performant npm 高效能 npm pnpm store prune 删除 store 中不 阅读全文
posted @ 2023-03-30 17:12 晚安喵 阅读(1220) 评论(0) 推荐(0) 编辑
摘要: 查看端口占用的进程 id sudo lsof -i tcp:7002 // 35868 杀死该进程 sudo kill 35868 阅读全文
posted @ 2023-03-30 17:09 晚安喵 阅读(12) 评论(0) 推荐(0) 编辑