标签 xcx 下的文章

设置 npm 全局路径

在nodejs安装目录下增加node_global和node_cache文件夹。

npm config set cache "D:\nodejs\node_global"
npm config set prefix "D:\nodejs\node_cache"

git - 分支

git branch
git status
git checkout -b re-v1.0.1
git branch
git push origin re-v1.0.1:re-v1.0.1
git push origin --delete re-v1.0.1

git常用命令

gitlab 生成秘钥

(1)进入git安装目录(默认C:\Program Files\Git\usr\bin);

(2)选择空白处,shift+右键,打开Powershell;

(3)输入命令 ssh-keygen -t rsa -C "admin@admin.com" 敲3次回车,即可生成密钥;

(4)秘钥位置:C盘>用户>当前本机登录用户名文件夹>.ssh> id_rsa.pub