Skip to content

Commit 8c3454a

Browse files
authored
Merge pull request #1652 from prnadago/git-in-vs
Simplify Git in Visual Studio page
2 parents 05d3306 + a846672 commit 8c3454a

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
lines changed
Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
11
=== Git in Visual Studio
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 has Git tooling built directly into the IDE, starting with Visual Studio 2019 version 16.8.
75

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:
6+
The tooling supports the following Git functionality:
107

11-
.Connecting to a Git repository from Team Explorer
12-
image::images/vs-1.png[Connecting to a Git repository from Team Explorer]
8+
* Create or clone a repository.
9+
* Open and browse history of a repository.
10+
* Create and checkout branches and tags.
11+
* Stash, stage, and commit changes.
12+
* Fetch, pull, push, or sync commits.
13+
* Merge and rebase branches.
14+
* Resolve merge conflicts.
15+
* View diffs.
16+
* ... and more!
1317
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.
18+
Read the https://docs.microsoft.com/visualstudio/version-control[official documentation^] to learn more.
1819

19-
[[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]
22-
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 more on using Git within Visual Studio go to: https://docs.microsoft.com/en-us/azure/devops/repos/git/command-prompt?view=azure-devops[].

images/vs-1.png

-8.53 KB
Binary file not shown.

images/vs-2.png

-3.95 KB
Binary file not shown.

0 commit comments

Comments
 (0)