1 nvm 安装
- 安装到D盘,路径不能有空格
- 下载nvm list available 下没有的版本
- 放入nvm 的安装路径中即可
2 git 配置ssh密钥
2.1 安装git 配置用户和邮箱 ssh
- ssh-keygen -t rsa -C "zhangyuanyuan@u-care.net.cn" 三次空格
- 到 提示的路径下 Your public key has been saved in C:\Users\username/.ssh/id_rsa.pub 复制
- 打开git仓库,新建一个ssh 即可
2.2报错
- 1 git pull报错fatal: Unencrypted HTTP is not recommended for GitLab. Ensure the repository remote URL is using HTTPS or see https://aka.ms/gcm/unsaferemotes about how to allow unsafe remotes.
bash
git config credential.allowUnsafeRemotes true
- 2 git pull报错 warning: missing OAuth configuration
bash
git config --global credential.helper wincred
弹出 账户名和密码登录即可
- 3 git add . 提示warning: LF will be replaced by CRLF in ...
bash
git config --global core.autocrlf false