Intellij IDEA配置Git

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u011296485/article/details/83717719

关于MAC上Git安装与GitHub基本使用请查看:https://blog.csdn.net/u011296485/article/details/83717493

打开终端,输入以下命令查找Git安装路径:

which git

//输出
/usr/local/bin/git

打开Intellij IDEA,Configure --> Preferences -->  Version Control --> Git

将红框内容替换成which命令得到的Git安装路径

点击Test进行测试,若出现以下弹窗表明配置成功【前提Git已配置好公钥和私钥,否则在使用git拉代码时会报错没有权限】

最后点击:Apply和OK按钮即可!!

猜你喜欢

转载自blog.csdn.net/u011296485/article/details/83717719