idea使用git拉取项目时,遇到的问题(Mac)
- 下载安装git,官网 https://git-scm.com/download 说要先下载homebrew,执行/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)”
命令又出现问题。
解决方法,使用国内地址:
/bin/zsh -c “$(curl -fsSL
https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)”
- $ brew install git 安装好gi t后,我在本地git ,查看是成功了。但是真的去idea 对项目clone的时候,Clone failed: Unable to access ‘…’: Failed to connect to … port 80: Operation timed out
解决方案:因为没在idea中配置git,操作如图: