VS2012安装git

新安装了vs2012,尝试使用Git,安装过程比较简单,记录下来以备以后查阅。

 
1. 下载、安装Git
我的系统是Windows 7,需要安装Git for Windows。
 
2. 安装Git Source Control Provider
  • 运行Visual Studio
  • 点击菜单中的Tools -> Extensions and Updates,在弹出窗口左侧列表项目中选择online -> Visual Studio Gallery,然后寻找或搜索出Git Source Control Provider,安装。
  • 安装完毕后按照msdn网站的介绍,在solution explorer中右击project可看见Git选项,但我没有发现Git字样。解决方法如下:在vs的Tools -> Options -> Source Control,在窗口右侧Current source control plug-in项目下拉菜单中点击Git Source Control Provider. 此时会继续弹出一个窗口,让你输入你的用户名和电子邮件地址,还要你找出git.exe文件存放的目录(git所存放文件夹下的bin目录里)。输入完这些内容后,在右击project,git选项已出现在弹出菜单中了。
posted @ 2014-08-13 21:18  netcorner  阅读(1417)  评论(0编辑  收藏  举报