Git clone代码,同时关联idea

在桌面的git bash中输入以下内容

cd .ssh

git  config --global  user.name "htling"

git config --global user.mail "[email protected] "

ssh-keygen -t rsa -C  "[email protected]"

mv vine/ /d/

cd /d

cd vine/

git checkout branch-0.1


在idea中用open project打开下载下来的程序


然后按照路径  Fie--》Settings --》 Tools --》Terminal 找到后设置右边的Shell path(自己安装的Git路径下相对位置),如下图所示


Git clone代码,同时关联idea_第1张图片

然后在settings中找到版本控制,找到Git,勾选git中cmd下面的git.exe


Git clone代码,同时关联idea_第2张图片

你可能感兴趣的:(Git clone代码,同时关联idea)