常用软件
-
vscode配置sftp进行ftp上传
在Vscode的商店中搜索sftp扩展,只需要配置host、username、password以及 remotePath四个参数就可以使用了。...
-
docker容器run之后马上又自动关闭退出
centos 启动一个容器添加了-d 参数,但是docker ps 或者docker ps -a查看却已经退出了。原因:docker容器运行必须有一个前台进程, 如果没有前台进程执行,容器认为空闲,就会自行退出,容器运行的命令如果不是那些一直挂起的命令( 运行top,tail、循环等),就是会自动退出,这个是 docker 的机制问题...
-
svn回退到制定的版本
在代码的编写过程中,难免有些错误需要修改,或者想从以前的文件进行代码修改,这样就涉及到版本的追踪,如果你以前提交时日志写的非常清楚,那版本追踪回滚起来就事半功倍、得心应手。...
-
npm报TypeError: Cannot read property 'loaded' of undefined错误
执行npm相关的命令时,会报Cannot read property 'loaded' of undefined错误。解决办法:删除 /Users/{user目录}/.npmrc...
-
ESlint、lint-staged规范代码风格和提升代码质量
最近在项目部署了ESlint还有一些配套的工具,比如 prettier husky lint-staged,有些心得写出来分享下。依据本篇可以实现在git commit之时,重新格式化代码,同时进行代码检查预防一些低级错误。最终期待项目中的开发人员提交到线上的代码符合代码规范、风格统一,看起来像是一个人写的。...
-
git add * 和git add . git add -A的区别
git add -A 和 git add . git add -u git add * 这些在功能上看似很相近,但还是存在一点差别。...
-
vscode编译typescript时报error TS5058: The specified path does not exist
VSCode自动编译TypeScript时一直报typeconfig配置文件路径找不到的错误。纠结很久,终于找到解决办法: 错误如下: error TS5058: The specified path does not exist:d:\typescripttsconfig.json 错误的...
-
Git提交失败Updates were rejected because the tip of your current branch is behind
Git提交失败Updates were rejected because the tip of your current branch is behind $ git push -u origin master Username for 'https://github.com': xiaoshen110 libpng warning: iCCP: cHRM chunk does not match sRGB To https://github.com/xiaoshen110/cici.gi...
-
Git提示“warning: LF will be replaced by CRLF“的解决办法
使用git add时提示“warning: LF will be replaced by CRLF“的解决办法...
-
git仓库迁移(从github上拉下来的代码修改后push到自己的仓库)
简单粗暴的方法: rm -rf .git //删除.git git init git add . git commit -m "desc" git remote add origin https://github.com/xxxxxxx git push -u origin master ...
-
vscode忽略node_module文件夹
1.文件 ---> 首选项 ---> 设置 2.文件->打开 setting.json 3.将以下代码添加到 setting.json 中...
友情链接