1、strict-ssl
报错:UNABLE_TO_GET_ISSUER_CERT_LOCALLY
设置:npm config
set
strict-ssl
false
2、设置全局用户名和邮箱:
git config --global user.name "yourusername"
git config --global user.email "youremail@abc.com"
3、ssh 配置
3.1 mac:
[1] cd ~/.ssh 查看是否存在
[2] ssh-keygen -o 生成 。存储位置默认是 .ssh/id_rsa
[3] ssh-add 密钥的位置
3.2 windows:
[1] ssh-keygen -t rsa -C "youremail@abc.com" (看信息,里面有生成后的存放位置)
[2] 好像在 用户名的 .ssh文件夹下的ssh会被自动读取?我什么都没做,把文件夹里面的公钥放上去,就可以用git clone ssh:xxx 了。