下载链接:Git - Downloads
打开pycharm终端
- 下载Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- 接着会有以下提示
==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/xxx/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
- Run brew help to get started
在终端继续执行以上两行命令
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/xxx/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
- 执行下载git命令
brew install git
- 配置git
git config --global user.name "your_name"
git config --global user.email "your_name@xxx.com"
- clone项目
git clone https://git.woa.com/xxx/xxx.git