https://link.zhihu.com/?target=https%3A//sourceforge.net/projects/git-osx-installer/
which git
git config –global –list
git config –list
git config –global user.name “xxx”
git config –global user.email “xxxx”
~/.ssh/
ssh-keygen -t rsa -C “xxxx@mail.com“
https://npm.taobao.org/mirrors/node/v6.9.4/node-v6.9.4.pkg
node -v
nvm github:https://github.com/nvm-sh/nvm#troubleshooting-on-macos
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
或
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
vim ~/.zshrc
source ~/.nvm/nvm.sh
source ~/.zshrc
nvm -v
/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
sudo /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
命令 描述
brew update 更新 Homebrew
brew search package 搜索软件包
brew install package 安装
brew uninstall package 卸载软件包
brew upgrade 升级所有软件包
brew upgrade package 升级指定软件包
brew list 列出已安装的软件包列表
brew services command package 管理 brew 安装软件包
brew services list 列出 brew 管理运行的服务
brew info package 查看软件包信息
brew deps package 列出软件包的依赖关系
brew help 查看帮助
brew cleanup 清除过时软件包
brew link package 创建软件包符号链接
brew unlink package 取消软件包符号链接
brew doctor 检查系统是否存在问题