美文网首页
mac安装git

mac安装git

作者: 红酒煮咖啡 | 来源:发表于2022-07-21 13:24 被阅读0次

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)
就好了

相关文章

网友评论

      本文标题:mac安装git

      本文链接:https://www.haomeiwen.com/subject/myyuirtx.html