1. 在setting里找到 Version Control,并测试 github账号
2. 连接成功后
3.下载GIT核心文件
http://git-scm.com/download/win
http://msysgit.github.io/
http://git-scm.com/book/zh/v1/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git(安装git)
4.配置git地址(git.exe的完整路径),并test进行测试
5.点击VCS的enable version control intergration,进行本地仓库创建
点击ok ,在底部提示创建成功一个仓库。(可以在仓位文件夹看到对应的项目文件的详细位置查看)
6.开始上传 github
这里可能会出现 initial commit failed
解决:
1.git init
2.git config user.name "someone"
3.git config user.email "someone@someplace.com"
4.git add *
5.git commit -m "some init msg"
7.Git-Add
![](https://img-blog.csdn.net/20150430093302099?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdTAxMDk2MTQ2NQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
![]()
8.push
提示push成功。