From 11e2ef633534cd8168b9029dadf8b189e1ea3303 Mon Sep 17 00:00:00 2001 From: liwenzhuo Date: Mon, 15 Jun 2015 21:12:16 +0800 Subject: [PATCH 1/3] git in visual studio --- .../sections/visualstudio.asc | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/book/A-git-in-other-environments/sections/visualstudio.asc b/book/A-git-in-other-environments/sections/visualstudio.asc index 8ab66436..b3c04dbc 100644 --- a/book/A-git-in-other-environments/sections/visualstudio.asc +++ b/book/A-git-in-other-environments/sections/visualstudio.asc @@ -1,25 +1,24 @@ === Git in Visual Studio (((Visual Studio))) -Starting with Visual Studio 2013 Update 1, Visual Studio users have a Git client built directly into their IDE. -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. -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. +从Visual Studio 2013 Update 1版本开始,Visual Studio用户可以在他们的IDE直接使用内嵌的Git客户端。 +Visual Studio中集成代码管理的特征已经有较长的一段时间了,但都是倾向于集中管理、文件锁定的系统,Git在这种工作流中并没有它们有效。 +Visual Studio2013中已经支持Git,使得Visual Studio与原来旧的版本管理特征分离,其结果就是Visual Studio和Git有更好的集成。 -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. -You'll see the "Connect" view, which looks a bit like this: +想要找到这个特性,在Visual Studio中打开一个已经用Git管理的工程(或者直接在工程目录中git init),选择菜单View > Team Explorer。你将看到"Connect"视图,大概如下图所示: -.Connecting to a Git repository from Team Explorer. -image::images/vs-1.png[Connecting to a Git repository from Team Explorer.] +.从Team Explorer中连接Git代码库. +image::images/vs-1.png[.从Team Explorer中连接Git代码库.] -Visual Studio remembers all of the projects you've opened that are Git-controlled, and they're available in the list at the bottom. -If you don't see the one you want there, click the "Add" link and type in the path to the working directory. -Double clicking on one of the local Git repositories leads you to the Home view, which looks like <>. -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. +Visual Studio能够记住所有你打开过的用Git管理的工程,他们都在下方的列表中。 +如果你没看到你想要的工程,点击"Add"按钮,添加工程工作目录的路径。 +双击其中一个本地代码库会将你带入Home视图,大概如<>所示。 +这是一个执行Git操作的连接桥;当你正在写代码的时候,大部分时间你将可能在"Changes"视图中,但是当需要拉取同伴的改动时你将使用到"Unsynced Commits"和"Branches"视图。 [[vs_home]] -.The "Home" view for a Git repository in Visual Studio. -image::images/vs-2.png[The Home view for a Git repository in Visual Studio.] +.Visual Studio中的Git代码库的"Home"视图. +image::images/vs-2.png[Visual Studio中的Git代码库的"Home"视图.] -Visual Studio now has a powerful task-focused UI for Git. -It includes a linear history view, a diff viewer, remote commands, and many other capabilities. -For complete documentation of this feature (which doesn't fit here), go to http://msdn.microsoft.com/en-us/library/hh850437.aspx[]. +Visual Studio现在拥有一套强有力的任务导向的Git操作界面。 +包括线性的历史视图,diff视图,远程仓库操作命令,以及其他很多功能。 +想要这个特性的详尽文档(放在这里并不合适)请参阅http://msdn.microsoft.com/en-us/library/hh850437.aspx。 From 1a894d2f85f953473ef202019bb46bbdb868155d Mon Sep 17 00:00:00 2001 From: liwenzhuo Date: Tue, 16 Jun 2015 11:26:51 +0800 Subject: [PATCH 2/3] fix format and accurate translation thx to @devbean --- .../sections/visualstudio.asc | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/book/A-git-in-other-environments/sections/visualstudio.asc b/book/A-git-in-other-environments/sections/visualstudio.asc index b3c04dbc..ac93a805 100644 --- a/book/A-git-in-other-environments/sections/visualstudio.asc +++ b/book/A-git-in-other-environments/sections/visualstudio.asc @@ -1,24 +1,25 @@ === Git in Visual Studio (((Visual Studio))) -从Visual Studio 2013 Update 1版本开始,Visual Studio用户可以在他们的IDE直接使用内嵌的Git客户端。 -Visual Studio中集成代码管理的特征已经有较长的一段时间了,但都是倾向于集中管理、文件锁定的系统,Git在这种工作流中并没有它们有效。 -Visual Studio2013中已经支持Git,使得Visual Studio与原来旧的版本管理特征分离,其结果就是Visual Studio和Git有更好的集成。 +从 Visual Studio 2013 Update 1 版本开始, Visual Studio 用户可以在他们的 IDE 直接使用内嵌的 Git 客户端。 +Visual Studio 集成源代码版本控制这一特性已经有很长一段时间,但面向的是集中式、文件锁定方式的系统, Git 并不能很好的符合他们的工作流。 +Visual Studio 2013 中已经支持 Git ,并独立于原有版本管理系统,其结果是让 Visual Studio 和 Git 能更好地相互适应。 -想要找到这个特性,在Visual Studio中打开一个已经用Git管理的工程(或者直接在工程目录中git init),选择菜单View > Team Explorer。你将看到"Connect"视图,大概如下图所示: +想要找到这个特性,在 Visual Studio 中打开一个已经用 Git 管理的工程(或者直接在工程目录中 `git init` ),选择菜单 View > Team Explorer 。 +你将看到 "Connect" 视图,大概如下图所示: -.从Team Explorer中连接Git代码库. -image::images/vs-1.png[.从Team Explorer中连接Git代码库.] +。从 Team Explorer 中连接 Git 代码库。 +image::images/vs-1.png[。从 Team Explorer 中连接 Git 代码库。] -Visual Studio能够记住所有你打开过的用Git管理的工程,他们都在下方的列表中。 -如果你没看到你想要的工程,点击"Add"按钮,添加工程工作目录的路径。 -双击其中一个本地代码库会将你带入Home视图,大概如<>所示。 -这是一个执行Git操作的连接桥;当你正在写代码的时候,大部分时间你将可能在"Changes"视图中,但是当需要拉取同伴的改动时你将使用到"Unsynced Commits"和"Branches"视图。 +Visual Studio 能够记住所有你打开过的用 Git 管理的工程,它们都在下方的列表中。 +如果没看到你想要的工程,点击 "Add" 按钮,添加工程工作目录的路径。 +双击其中一个本地的 Git 版本库会将你带入 "Home" 视图,大概如 <> 所示。 +这是一个执行 Git 操作的操作中心;当你_正在编写_代码的时候,你可能主要关注 "Changes" 视图,当需要拉取同伴的改动时,你将使用 "Unsynced Commits" 和 "Branches" 视图。 [[vs_home]] -.Visual Studio中的Git代码库的"Home"视图. -image::images/vs-2.png[Visual Studio中的Git代码库的"Home"视图.] +。Visual Studio 中的 Git 版本库的 "Home" 视图。 +image::images/vs-2.png[。Visual Studio 中的 Git 版本库的 "Home" 视图。] -Visual Studio现在拥有一套强有力的任务导向的Git操作界面。 -包括线性的历史视图,diff视图,远程仓库操作命令,以及其他很多功能。 -想要这个特性的详尽文档(放在这里并不合适)请参阅http://msdn.microsoft.com/en-us/library/hh850437.aspx。 +Visual Studio 现在拥有一套强大的着眼于任务的 Git 操作界面。 +它包括线性的历史视图、diff 视图、远程仓库操作命令、以及其它很多功能。 +想要这个特性的详尽文档(放在这里并不合适)请参阅 http://msdn.microsoft.com/en-us/library/hh850437.aspx[] 。 From bad6ef56a8b2914f29b3be94a12cce0dc26c7eac Mon Sep 17 00:00:00 2001 From: liwenzhuo Date: Tue, 16 Jun 2015 14:18:06 +0800 Subject: [PATCH 3/3] fix markdown link --- .../A-git-in-other-environments/sections/visualstudio.asc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/book/A-git-in-other-environments/sections/visualstudio.asc b/book/A-git-in-other-environments/sections/visualstudio.asc index ac93a805..4dd8f0a5 100644 --- a/book/A-git-in-other-environments/sections/visualstudio.asc +++ b/book/A-git-in-other-environments/sections/visualstudio.asc @@ -8,8 +8,8 @@ Visual Studio 2013 中已经支持 Git ,并独立于原有版本管理系统 想要找到这个特性,在 Visual Studio 中打开一个已经用 Git 管理的工程(或者直接在工程目录中 `git init` ),选择菜单 View > Team Explorer 。 你将看到 "Connect" 视图,大概如下图所示: -。从 Team Explorer 中连接 Git 代码库。 -image::images/vs-1.png[。从 Team Explorer 中连接 Git 代码库。] +.从 Team Explorer 中连接 Git 代码库。 +image::images/vs-1.png[从 Team Explorer 中连接 Git 代码库。] Visual Studio 能够记住所有你打开过的用 Git 管理的工程,它们都在下方的列表中。 如果没看到你想要的工程,点击 "Add" 按钮,添加工程工作目录的路径。 @@ -17,8 +17,8 @@ Visual Studio 能够记住所有你打开过的用 Git 管理的工程,它们 这是一个执行 Git 操作的操作中心;当你_正在编写_代码的时候,你可能主要关注 "Changes" 视图,当需要拉取同伴的改动时,你将使用 "Unsynced Commits" 和 "Branches" 视图。 [[vs_home]] -。Visual Studio 中的 Git 版本库的 "Home" 视图。 -image::images/vs-2.png[。Visual Studio 中的 Git 版本库的 "Home" 视图。] +.Visual Studio 中的 Git 版本库的 "Home" 视图。 +image::images/vs-2.png[Visual Studio 中的 Git 版本库的 "Home" 视图。] Visual Studio 现在拥有一套强大的着眼于任务的 Git 操作界面。 它包括线性的历史视图、diff 视图、远程仓库操作命令、以及其它很多功能。