1. 锁定 npm 下载版本
npm config set save-prefix=''
如果发现在命令行执行这行代码无效,可以使用 vim ~/.npmrc 这行命令在 vim 编译器中添加如下代码:
save-prefix=''
2. 统计代码行数
cloc . --vcs git
3. 命令行打开 github
git open
4. git clone occurs error: connection refused
git config --global --unset http.proxy
git config --global --unset https.proxy
5. 查看代码编写的时间以及操作人员
git blame
relativePath
6. vim 选中的情况下跳转到某一行
some line + 'G', for example:
357G