在VS2010中使用Git管理源代码

前文我们讲了使用TortoiseGit管理源代码,但是对于使用VS2010的朋友来说,源代码管理起来还是不怎么方便。要是直接在VS2010中能使用Git就好了,下面我们就来看看怎么在VS2010中使用Git的功能。

       主要是分成两个步骤

1 安装

  • 打开VS2010,选择Tools->Extension Manager;
  • 选择左侧的“online gallary”,在搜索栏中搜索“git”;
  • 在搜索结果中看到“Git Source Control Provider ”,选择并安装。

2 配置

  • 选择Tools->Options;
  • 在视图树中选择“Source Control ”;
  • 在右侧的下拉列表中选择“Git Source Control Provider ”;
  • 打开由Git管理的解决方案,就可以看到各个文件不同的状态,在“Solution Explorer”中右键单击想管理的文件,选择“Git”菜单中相应的函数,实现管理。
  • https://www.cnblogs.com/xuhongfei/p/3622469.html
  • https://www.cnblogs.com/smallfa/p/4984547.html
  • https://blog.csdn.net/mochounv/article/details/54378190
posted @ 2019-01-15 11:08  花GE  阅读(587)  评论(0编辑  收藏  举报