0%

2020-11-29 git 和 npm 常用设置

2020-11-29 git 和 npm 常用设置

git 常用配置

1
2
3
4
5
git config --global user.name "runoob" //设置用户名
git config --global user.email "test@runoob.com" //设置邮箱
ssh-keygen -t rsa -C "youremail@example.com" // 生成 SSH Key
git config --global core.autocrlf false //设置不转换换行符
git config --global core.ignorecase false // 设置区分大小写

npm 常用配置

1
2
npm config set registry https://registry.npm.taobao.org // 设置淘宝镜像
npm config set package-lock false // 设置不生成 package-lock.json 文件

本文作者:草梅友仁
本文地址: https://blog.cmyr.ltd/archives/ec6f31e2.html
版权声明:转载请注明出处!

坚持原创技术分享,您的支持将鼓励我继续创作!