Skip to content

Commit b8b6822

Browse files
committed
Merge pull request #235 from networm/liwenzhuo-git_in_visual_studio
Translate A-git-in-other-environments visualstudio (Originally #80)
2 parents bf594bf + 9b92c40 commit b8b6822

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
=== Git in Visual Studio
1+
=== Visual Studio 中的 Git
22

33
(((Visual Studio)))
4-
Starting with Visual Studio 2013 Update 1, Visual Studio users have a Git client built directly into their IDE.
5-
Visual Studio has had source-control integration features for quite some time, but they were oriented towards centralized, file-locking systems, and Git was not a good match for this workflow.
6-
Visual Studio 2013's Git support has been separated from this older feature, and the result is a much better fit between Studio and Git.
4+
Visual Studio 2013 Update 1 版本开始,Visual Studio 用户可以在他们的 IDE 中直接使用内嵌的 Git 客户端。
5+
Visual Studio 集成源代码版本控制特性已经有很长一段时间,但面向的是集中式、文件锁定方式的系统,Git 并不能很好地符合这种工作流程。
6+
Visual Studio 2013 中已经支持 Git,并独立于原有版本管理系统,这使得 Visual Studio Git 能更好地相互适应。
77

8-
To locate the feature, open a project that's controlled by Git (or just `git init` an existing project), and select View > Team Explorer from the menu.
9-
You'll see the "Connect" view, which looks a bit like this:
8+
想要找到这个特性,在 Visual Studio 中打开一个已经用 Git 管理的项目(或者直接在项目目录中 `git init` ),选择菜单 View > Team Explorer
9+
你将看到 "Connect" 视图,大概如下图所示:
1010

11-
.Connecting to a Git repository from Team Explorer.
12-
image::images/vs-1.png[Connecting to a Git repository from Team Explorer.]
11+
.从 Team Explorer 中连接 Git 仓库。
12+
image::images/vs-1.png[从 Team Explorer 中连接 Git 仓库。]
1313

14-
Visual Studio remembers all of the projects you've opened that are Git-controlled, and they're available in the list at the bottom.
15-
If you don't see the one you want there, click the "Add" link and type in the path to the working directory.
16-
Double clicking on one of the local Git repositories leads you to the Home view, which looks like <<vs_home>>.
17-
This is a hub for performing Git actions; when you're _writing_ code, you'll probably spend most of your time in the "Changes" view, but when it comes time to pull down changes made by your teammates, you'll use the "Unsynced Commits" and "Branches" views.
14+
Visual Studio 能够记住所有你打开过的用 Git 管理的项目,它们都在下方的列表中。
15+
如果没看到你想要的项目,点击 "Add" 按钮,添加项目工作目录的路径。
16+
双击其中一个本地的 Git 仓库会将你带入 "Home" 视图,大概如 <<vs_home>> 所示。
17+
这是一个执行 Git 操作的操作中心;当你_正在编写_代码的时候,你可能主要关注 "Changes" 视图,当需要拉取同伴的改动时,你将使用 "Unsynced Commits" "Branches" 视图。
1818

1919
[[vs_home]]
20-
.The "Home" view for a Git repository in Visual Studio.
21-
image::images/vs-2.png[The Home view for a Git repository in Visual Studio.]
20+
.Visual Studio 中的 Git 仓库的 "Home" 视图。
21+
image::images/vs-2.png[Visual Studio 中的 Git 仓库的 "Home" 视图。]
2222

23-
Visual Studio now has a powerful task-focused UI for Git.
24-
It includes a linear history view, a diff viewer, remote commands, and many other capabilities.
25-
For complete documentation of this feature (which doesn't fit here), go to http://msdn.microsoft.com/en-us/library/hh850437.aspx[].
23+
Visual Studio 现在拥有一套着眼于任务的强大 Git 操作界面。
24+
它包括线性的历史视图、diff 视图、远程仓库操作命令,以及其它很多功能。
25+
这个特性的完整文档(放在这里并不合适)请参阅 http://msdn.microsoft.com/en-us/library/hh850437.aspx[]

0 commit comments

Comments
 (0)