PyCharm配置Git

作者: 淇怪君 2017-02-02 15:24:45

windows 下


step 1 : 


首先安装 GitHub


step 2 : 


找到 Git.exe 的路径


git.exe 的默认路径如下:


C:\Users\yourname\AppData\Local\GitHub\PortableGit_69703d1db91577f4c666e767a6ca5ec50a48d243\bin\git.exe


step 3 : 


Pycharm 配置 git


File->Settings->Version Control->Git


在 Path to Git executable 中添加 git.exe 路径




step 4 : 


测试 git




出现如图所示的提示框,则配置成功。


 


ubuntu 下


step 1 : 


首先安装 git


命令安装 sudo apt-get install git


step 2 : 


测试: 命令行键入 git version 


若正常显示 git version 即安装成功


step 3 : 


找到 git.exe 的路径


命令行键入 whereis git


得到 :git: /usr/bin/git 即为 git 路径


step 4 : 


pycharm 配置 git


同 windows 下配置 git 的 step 3


step 5 : 


测试 git :同 windows 下配置 git 的 step 4


 


本文永久更新地址:http://www.linuxdiyf.com/linux/28104.html

相关资讯