mac 安装 nvm
进入当前用户的 home 目录中
使用 ls -a 显示这个目录下的所有文件(夹)(包含隐藏文件及文件夹),查看有没有 .bash_profile 这个文件。
cd ~
touch ~/.bash_profile (没有则新建)
open ~/.bash_profile (打开文件)
如果有或者新建完成后,我们通过官方的说明在终端中运行下面命令中的一种进行安装:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
如果没有nvm 还需配置 touch .zshrc
nvm 设置默认版本
nvm alias default v12.22.12
获取远程新的分支
git remote update origin --prune