转载自:http://blog.csdn.net/u010961465/article/details/45368583
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 testname
3.git config user.email "someone@someplace.com"
4.git add -f *
5.git commit -m "some init msg"
7.Git-Add

8.push
提示push成功。