1、安装homebrew
homebrew官网: https://brew.sh/
下载出错的话,使用国内镜像源
/bin/zsh -c "$(curl -fsSL [https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh](https://links.jianshu.com/go?to=https%3A%2F%2Fgitee.com%2Fcunkai%2FHomebrewCN%2Fraw%2Fmaster%2FHomebrew.sh))"
2、下载git
brew install git
3、设置不需要每次输入密码
终端输入ssh-add -L 返回提示 The agent has no identities.
再输入ssh-add
需要输入一遍密码
返回Identity added: /Users/username/.ssh/id_rsa (username)
就好了
网友评论