PyCharm 配置 Git

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 路径
5

step 4 : 
测试 git
4QYDL4Z}4)~MC4W4X_FR9U0
出现如图所示的提示框,则配置成功

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


版权声明:本文为Tifficial原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。