码迷,mamicode.com
首页 > 其他好文 > 详细

intellij idea14.0.3 配置Git

时间:2015-06-16 21:03:23      阅读:231      评论:0      收藏:0      [点我收藏+]

标签:

1:开通Github账户:可以找度娘搜索下,比较简单,附链接:http://jingyan.baidu.com/article/f7ff0bfc7181492e27bb1360.html

2:需要安装Git客户端:https://code.google.com/p/msysgit/downloads/list,整个过程基本都是默认安装,当出现在Adjusting your PATH environment页,勾选Run Git from the Windows Command Prompt

3:启动Git两种方式:一种是win的cmd,一种是git自带的Bash

如:git --version

4:安装比对工具kdiff:http://sourceforge.net/projects/kdiff3/files/kdiff3/  配置.gitconfig文件

5:至少配置Git如下项:

git config --global user.name "aaaa"           
git config --global user.email "aaaa@163.com" 
git config --global merge.tool "kdiff3"              
git config --global push.default simple               
git config --global core.autocrlf false               
git config --global gui.encoding utf-8                
git config --global core.quotepath off 

6:配置idea

打开设置面板(Ctrl+Alt+S),点击左边功能面板列表中的Version Control(版本控制)如下图:

技术分享

7. 然后我们点击第六项 GitHub(本文默认你已经拥有了一个github账号,如果没有请先注册)
然后Host一栏填写github 的地址: 
在 Login 一栏填写你的github 账号,Password 一栏填写密码
填写完成后点击 Test按钮,此时 IDEA 会根据你填写的内容远程访问github社区,如果账号和密码输入正确会提示你链接成功
技术分享

 8:接下来,点击左边面板的功能列表中的Git 进行配置

这里面有许多配置,其实基本按照默认的就行了,无需做其他更多的操作。
在Path to Git executable一栏,选择刚才安装的git路径下bin\git.exe 然后点击后面的Test按钮,如果配置成功会看到如下界面:
技术分享
 

 

intellij idea14.0.3 配置Git

标签:

原文地址:http://www.cnblogs.com/qrrlinux/p/4581598.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!