Visual Studio 2010/2012 Git 插件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16989962/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 16:21:36  来源:igfitidea点击:

Visual Studio 2010/2012 Git Plugin

visual-studio-2010gitvisual-studio-2012

提问by Maverick

I am looking for suggestions for a git integration with VS 2010/2012 that allow developers use the basic operations (commit, push,pull,switch branches, tagging)

我正在寻找关于 git 与 VS 2010/2012 集成的建议,允许开发人员使用基本操作(提交、推送、拉取、切换分支、标记)

采纳答案by Supawat Pusavanno

Visual Studio for Gitwith VS 2012, it's matured now (version 1.0).

Visual Studio for Gitwith VS 2012,现在已经成熟(1.0 版)。

I like deep integration with VS 2012 especially switch between branch seamlessly, you will work with any branch at any time.

我喜欢与 VS 2012 的深度集成,尤其是在分支之间无缝切换,您可以随时使用任何分支。

Another thing is that it's working very well with Bitbucket.

另一件事是它与 Bitbucket 一起工作得很好。

回答by Klas Mellbourn

There are several:

有几种:

  1. Git Source Control Provider
  2. Visual Studio Tools for Git a.k.a. Microsoft Git Providerfrom Microsoft.
  3. Git Extensions
  1. Git 源代码控制提供程序
  2. Visual Studio Tools for Git又名Microsoft Git Provider
  3. Git 扩展

1 and 2 gives you deep integration with the source control UI of Visual Studio, like padlock icons on files:

1 和 2 使您可以与 Visual Studio 的源代码控制 UI 深度集成,例如文件上的挂锁图标:

File icons showing git status

显示 git 状态的文件图标

1 uses the ordinary Pending Changestab, but adds some functions, like Switch Branch:

1 使用普通的Pending Changes选项卡,但添加了一些功能,如Switch Branch

Pending changes in Git Source Control Provider

Git 源代码控制提供程序中的待定更改

2 surely represents the future of Git integration in Visual Studio since Microsoft is behind it.

2 肯定代表了 Visual Studio 中 Git 集成的未来,因为微软是它的幕后推手。

Microsoft Git Provider changes tab

Microsoft Git 提供程序更改选项卡

Note that 2 requires Visual Studio 2012 (with update 2 even), so if VS2010 support is a requirement you cannot use it. 2 is built into Visual Studio 2013

请注意,2 需要 Visual Studio 2012(甚至更新 2),因此如果需要 VS2010 支持,则不能使用它。2 内置于 Visual Studio 2013

However, it sounds like you might prefer 3. Git Extensionsis simpler and just gives you a simple toolbar with commit, pull, push, stash (not switch branch, though):

但是,听起来您可能更喜欢3。Git Extensions更简单,它只为您提供一个简单的工具栏,其中包含提交、拉取、推送、存储(但不是切换分支):

Git Extensions toolbar

Git 扩展工具栏