有用的终端指令
个人网站
- 之前在网站部署时,经常会出现
Prettier code formatter
的报错,只需要在push前,运行下面这行指令就可以解决
npx prettier --write .
git操作
ssh连接 or https连接
- 一直困扰了我很长时间,为什么我的win笔记本fetch和push都很费劲
- 今天终于了解了,原来使用的是https连接
git remote -v
# 可以用来查看当前主机和github是什么连接
- 切换到ssh连接
git remote set-url origin git@github.com:blueberrymann/blueberrymann.github.io.git
8080端口被占用
-
windows
设备
netstat -ano | findstr :8080
云算力平台
- 看显卡占用率
nvidia-smi
- 赋予.sh脚本可执行
chmox +x .sh
Enjoy Reading This Article?
Here are some more articles you might like to read next: