Skip to content

Repo sync for protected CLA branch #6481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 46 commits into from
Mar 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
03159ee
create initial scaffolding of new feature compare doc
TerryGLee Feb 24, 2021
04f5f15
add clone repo text & screenshots
TerryGLee Feb 24, 2021
ded4ec2
resize clone repo screenshots
TerryGLee Feb 24, 2021
fcc90d5
resize clone repo screenshots again
TerryGLee Feb 24, 2021
8bc133a
interim edit
TerryGLee Feb 24, 2021
7a28a5a
add 'switch between repos' section
TerryGLee Feb 25, 2021
a0abaac
add 'open a solution' section
TerryGLee Feb 25, 2021
16000f5
add 'source control - create repo' section
TerryGLee Feb 26, 2021
4f8135b
add 'commit and stage' section
TerryGLee Feb 26, 2021
cee03cf
add 'amend a commit' section
TerryGLee Feb 26, 2021
65df59d
add 'stash a change' section
TerryGLee Feb 26, 2021
e64f89a
add 'fetch pull push changes' section
TerryGLee Feb 26, 2021
3b75af7
add 'incoming and outgoing commits' section
TerryGLee Feb 27, 2021
3e2112f
add 'create a branch' section
TerryGLee Mar 1, 2021
f03a4f3
add 'sync from a remote branch' section
TerryGLee Mar 1, 2021
9b807a3
add 'manage branches' section
TerryGLee Mar 1, 2021
08efab2
add 'resolve conflicts' section
TerryGLee Mar 1, 2021
98ec8a8
add 'revise Description metadata
TerryGLee Mar 1, 2021
45032c5
apply Acrolinx suggestions
TerryGLee Mar 2, 2021
9d765b0
add link to new Getting Started video on YouTube
TerryGLee Mar 2, 2021
5c7af11
update Update date and add link to new video
TerryGLee Mar 3, 2021
7df4e8e
remove redundate See Also link
TerryGLee Mar 4, 2021
247f28c
add lightbox example to first row of first table
TerryGLee Mar 5, 2021
7e99a06
fix image file path to lightbox images
TerryGLee Mar 5, 2021
e23d5cf
fix file path to new-git screenshot
TerryGLee Mar 5, 2021
c0c97b1
add second step to last procedure
TerryGLee Mar 5, 2021
09fa5c8
minor edit to second step to last procedure
TerryGLee Mar 5, 2021
b5927c6
fix spacing issue
TerryGLee Mar 9, 2021
ae35a8d
append screenshot file names with -sml
TerryGLee Mar 9, 2021
9e0b03f
add lightbox Markdown entries
TerryGLee Mar 11, 2021
ffa136c
reduce size of small screenshots
TerryGLee Mar 12, 2021
cce6752
add Tip note about how to view larger versions of the screenshots
TerryGLee Mar 12, 2021
137f2ee
add large screenshots to first section of the table
TerryGLee Mar 12, 2021
eff7b88
fix invalid attribute error
TerryGLee Mar 12, 2021
d5de218
add large screenshots to second section of the table
TerryGLee Mar 12, 2021
8c55176
add large screenshots to third section of the table
TerryGLee Mar 12, 2021
a852fac
add large screenshots to fourth and fifth sections of the table
TerryGLee Mar 12, 2021
9a31a10
add new Version Control node in the TOC
TerryGLee Mar 12, 2021
2b4ad40
adjust links in TOC
TerryGLee Mar 12, 2021
b29f9fe
reposition Version Control section in TOC
TerryGLee Mar 13, 2021
a32e3e8
reconfigure the Version Control section in TOC
TerryGLee Mar 13, 2021
25baa92
another reconfigure of the Version Control section in TOC
TerryGLee Mar 13, 2021
7d9ea04
revise page title in TOC
TerryGLee Mar 13, 2021
56690aa
Merge pull request #7842 from TerryGLee/tglee-newgit
Jak-MS Mar 15, 2021
8edb1a7
Merge branch 'master' into live
cxwtool Mar 15, 2021
b47a787
Merging changes synced from https://github.com/MicrosoftDocs/visualst…
ghogen Mar 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions docs/ide/git-team-explorer-feature-comparison.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
title: Side-by-side comparison of Git and Team Explorer in Visual Studio
titleSuffix: ""
description: Compare and contrast how to use the new Git experience versus Team Explorer in Visual Studio to manage source control.
ms.date: 03/12/2021
ms.topic: how-to
ms.author: tglee
author: TerryGLee
ms.manager: jmartens
monikerRange: vs-2019
---
# Side-by-side comparison of Git and Team Explorer

We launched the first version of a new Git experience in Visual Studio 2019 [version 16.8](/visualstudio/releases/2019/release-notes/). This new experience helps reduce context switching with a simple **Git Changes** window that includes common Git tasks. It also includes a screen-wide **Git Repository** window for more advanced Git operations, such as branch management and repository browsing.

If you’ve been using Team Explorer, here is a step-by-step guide that explains how you can use the new Git experience.

> [!NOTE]
> The following section includes screenshots sized to fit in the columns of a table. Click each screenshot to view a larger version of it. (If you're using a touchscreen device, tap each screenshot to view a larger version of it.)

## Get started

| |Team Explorer |The new Git experience |
|---------|---------|---------|
|**Clone a repo** | :::image type="content" source="media/vs-2019/clone-repo-team-explorer-sml.png" alt-text="Screenshot of the Connect window for Team Explorer in Visual Studio 2019, with a 'clone a repo' procedure overlay." lightbox="media/vs-2019/clone-repo-team-explorer-lrg.png"::: </p>1. Open the **Connect** page. <br> 2. Expand **Manage Connections**. <br> 3. Select **Connect to Project**. | :::image type="content" source="media/vs-2019/clone-repo-new-git-sml.png" alt-text="Screenshot of the Git menu in Visual Studio 2019, with a 'clone a repo' procedure overlay." lightbox="media/vs-2019/clone-repo-new-git-lrg.png"::: </p> 1. Open the **Git** menu. <br>2. Select **Clone Repository**. <br><br> |
|**Switch between repos** | :::image type="content" source="media/vs-2019/switch-repos-team-explorer-sml.png" alt-text="Screenshot of the Connect window for Team Explorer in Visual Studio 2019, with a 'switch between repos' procedure overlay." lightbox="media/vs-2019/switch-repos-team-explorer-lrg.png"::: </p>1. Open the **Connect** page. <br>2. Select a repository from the **Local Repositories** list. | :::image type="content" source="media/vs-2019/switch-repos-new-git-sml.png" alt-text="Screenshot of the Local Repositories menu item in Visual Studio 2019, with a 'clone a repo' procedure overlay." lightbox="media/vs-2019/switch-repos-new-git-lrg.png"::: </p> 1. Open the **Git** menu. <br>2. Select a repository from the **Local Repositories** list. |
|**Open a solution** | :::image type="content" source="media/vs-2019/open-solution-team-explorer-sml.png" alt-text="Screenshot of the Home window for Team Explorer in Visual Studio 2019, with an 'open a solution' procedure overlay." lightbox="media/vs-2019/open-solution-team-explorer-lrg.png":::</p>1. Open the **Home** page in **Team Explorer**. <br>2. Select a solution from the solution list. | :::image type="content" source="media/vs-2019/open-solution-new-git-sml.png" alt-text="Screenshot of Solution Explorer in Visual Studio 2019, with an 'open a solution' procedure overlay." lightbox="media/vs-2019/open-solution-new-git-lrg.png":::</p>1. Open the **Switch Views** page in **Solution Explorer**. <br>2. Select a solution from the solution list. |
|**Add a solution to source control and create a new repository** | :::image type="content" source="media/vs-2019/source-control-team-explorer-sml.png" alt-text="Screenshot collage of Team Explorer options in Visual Studio 2019, with an Add to Source Control - Create Repo procedure overlay." lightbox="media/vs-2019/source-control-team-explorer-lrg.png":::</p>1. Select **Git** from the **Add to Source Control** status bar menu. <br>2. Select **Publish**. | :::image type="content" source="media/vs-2019/source-control-new-git-sml.png" alt-text="Screenshot collage of Git options in Visual Studio 2019, with an 'add to source control - create repo' procedure overlay." lightbox="media/vs-2019/source-control-new-git-lrg.png":::</p>1. Select **Git** from the **Add to Source Control** status bar menu, or select **Git** > **Create Git Repository** from the top-level Visual Studio menu bar. <br>2. Select **Create and Push**. </p> **Note**: Use the existing remote option if you want to add your code to Azure DevOps. In this case, you must create an Azure DevOps repository first. |
> [!TIP]
> The [new Git experience](git-with-visual-studio.md) should automatically connect to the correct Azure DevOps repo based on the repository or solution you opened. However, if you need to manually connect to the repo, you can still do that by using Team Explorer. From the Visual Studio menu bar, select **View** > **Team Explorer** > **Manage Connections** > **Connect**.

## Git changes

| |Team Explorer |The new Git experience |
|---------|---------|---------|
|**Commit and stage** | :::image type="content" source="media/vs-2019/commit-stage-team-explorer-sml.png" alt-text="Screenshot of the Changes window for Team Explorer in Visual Studio 2019, with a 'commit and stage' procedure overlay." lightbox="media/vs-2019/commit-stage-team-explorer-lrg.png"::: </p>1. Enter a commit message. <br>2. Select **Commit All**. <br>3. To stage specific files, right-click them, and then select **Stage**. | :::image type="content" source="media/vs-2019/commit-stage-new-git-sml.png" alt-text="Screenshot of the Git Changes window in Visual Studio 2019, with a 'commit and stage' procedure overlay." lightbox="media/vs-2019/commit-stage-new-git-lrg.png"::: </p>1. Enter a commit message. <br>2. Select **Commit All**. <br>3. To stage specific files, hover over them, and then click the “**+**” icon. |
|**Amend a commit** | :::image type="content" source="media/vs-2019/amend-commit-team-explorer-sml.png" alt-text="Screenshot of the Changes window for Team Explorer in Visual Studio 2019, with an 'amend a commit' procedure overlay." lightbox="media/vs-2019/amend-commit-team-explorer-lrg.png":::</p>1. Click the **Actions** drop-down. <br>2. Select **Amend Previous Commit**. | :::image type="content" source="media/vs-2019/amend-commit-new-git-sml.png" alt-text="Screenshot of the Git Changes window in Visual Studio 2019, with an 'amend a commit' procedure overlay." lightbox="media/vs-2019/amend-commit-new-git-lrg.png"::: </p>1. Click the **Amend** checkbox. <br>2. Click **Commit All** to commit your updates. |
|**Stash a change** | :::image type="content" source="media/vs-2019/stash-change-team-explorer-sml.png" alt-text="Screenshot of the Changes window for Team Explorer in Visual Studio 2019, with a 'stash a change' procedure overlay." lightbox="media/vs-2019/stash-change-team-explorer-lrg.png":::</p>1. Click the **Stash** drop-down. <br>2. Select the relevant **Stash** option. | :::image type="content" source="media/vs-2019/stash-change-new-git-sml.png" alt-text="Screenshot of the Git Changes window in Visual Studio 2019, with a 'stash a change' procedure overlay." lightbox="media/vs-2019/stash-change-new-git-lrg.png":::</p>1. Click the **Commit All** drop-down. <br>2. Select the relevant **Stash** option. |

## Synchronization

| |Team Explorer |The new Git experience |
|---------|---------|---------|
|**Fetch, pull, and push changes** | :::image type="content" source="media/vs-2019/fetch-pull-push-team-explorer-sml.png" alt-text="Screenshot of the Synchronization window for Team Explorer in Visual Studio 2019, with a 'fetch, pull, and push' procedure overlay." lightbox="media/vs-2019/fetch-pull-push-team-explorer-lrg.png":::</p>1. Navigate to the **Synchronization** page. <br>2. Click the network operation of your choice. | :::image type="content" source="media/vs-2019/fetch-pull-push-new-git-sml.png" alt-text="Screenshot of the Git Changes window in Visual Studio 2019, with a 'fetch, pull, and push' procedure overlay." lightbox="media/vs-2019/fetch-pull-push-team-new-git-lrg.png"::: </p>1. Locate the fetch, pull, and push buttons in the **Git Changes** window. <br>2. Click the network operation of your choice.|
|**View Incoming and Outgoing commits** | :::image type="content" source="media/vs-2019/view-commits-team-explorer-sml.png" alt-text="Screenshot of the Synchronization window for Team Explorer in Visual Studio 2019, with a 'view incoming and outgoing commits' procedure overlay." lightbox="media/vs-2019/view-commits-team-explorer-lrg.png"::: </p>1. Navigate to the **Synchronization** page. <br>2. View your incoming and outgoing lists. | :::image type="content" source="media/vs-2019/view-commits-new-git-sml.png" alt-text="Screenshot of the Git Changes window and the Git Repository window in Visual Studio 2019, with a 'view incoming and outgoing commits' procedure overlay." lightbox="media/vs-2019/view-commits-new-git-lrg.png":::</p>1. Click the **outgoing / incoming** link in the **Git Changes** window. <br>2. View your incoming and outgoing commits by using the icons in the graph table at the top of the **Git Repository** window. |

## Branches

| |Team Explorer |The new Git experience |
|---------|---------|---------|
|**Create a branch** | :::image type="content" source="media/vs-2019/create-branch-team-explorer-sml.png" alt-text="Screenshot of the Branches window for Team Explorer in Visual Studio 2019, with a 'create a new branch' procedure overlay." lightbox="media/vs-2019/create-branch-team-explorer-lrg.png":::</p>1. Navigate to the **Branches** window. <br> 2. Click **New Branch**. | :::image type="content" source="media/vs-2019/create-branch-new-git-sml.png" alt-text="Screenshot of the Git Changes window in Visual Studio 2019, with a 'create a new branch' procedure overlay." lightbox="media/vs-2019/create-branch-new-git-lrg.png"::: </p>1. On the **Git Changes** window, click the branch drop-down list. <br>2. Click **New Branch**. |
|**Get the latest changes from a remote branch** | :::image type="content" source="media/vs-2019/sync-remote-team-explorer-sml.png" alt-text="Screenshot of the Branches window for Team Explorer in Visual Studio 2019, with a 'get recent changes from remote branch' procedure overlay." lightbox="media/vs-2019/sync-remote-team-explorer-lrg.png"::: </p>1. Navigate to the **Branches page**. <br>2. Right-click the remote branch and select **Merge From** or **Rebase Onto**. | :::image type="content" source="media/vs-2019/sync-remote-new-git-sml.png" alt-text="Screenshot of the Git Changes window in Visual Studio 2019, with a 'get recent changes from remote branch' procedure overlay." lightbox="media/vs-2019/sync-remote-new-git-lrg.png":::</p>1. Click the branch drop-down list. <br>2. Under the **Remotes** tab, click the remote branch and select **Merge into Current Branch** or **Rebase Current Branch onto**. |
|**Manage branches** | :::image type="content" source="media/vs-2019/manage-branches-team-explorer-sml.png" alt-text="Screenshot of the Branches window for Team Explorer in Visual Studio 2019, with a 'manage branches' procedure overlay." lightbox="media/vs-2019/manage-branches-team-explorer-lrg.png"::: </p>1. Navigate to the **Branches** window. <br>2. Right-click the branches that you would like to manage. <br>3. View **History** of branches to manage commits. | :::image type="content" source="media/vs-2019/manage-branches-new-git-sml.png" alt-text="Screenshot collage of how three UI options to use to manage branches in Visual Studio 2019." lightbox="media/vs-2019/manage-branches-new-git-lrg.png"::: </p>1. Navigate to the Git repository window by using one of the following entry points: <br><br>a. From the top-level Visual Studio menu, select **Git** > **Manage Branches**.<br> b. Select **Git changes** > **incoming/outgoing**. <br>c. From the status bar menu at the bottom-right, select **Manage Branches**.<br> <br> 2. From the top-level **Git** > **Manage Branches** menu, do either of the following actions: <br><br>A. Right-click the branches.<br>B. Multi-select the commits that you want to manage. |

## Conflict resolution

| |Team Explorer |The new Git experience |
|---------|---------|---------|
|**Access list of files with conflicts** | :::image type="content" source="media/vs-2019/resolve-conflicts-team-explorer-sml.png" alt-text="Screenshot collage of the Changes window and the Resolve Conflicts window for Team Explorer in Visual Studio 2019, with a procedure overlay." lightbox="media/vs-2019/resolve-conflicts-team-explorer-lrg.png":::</p>1. Navigate to the **Resolve Conflicts** window by clicking the **Conflicts** link. <br> 2. Use the **Conflicts** list to resolve your merge conflicts. | :::image type="content" source="media/vs-2019/resolve-conflicts-new-git-sml.png" alt-text="Screenshot of the Git Changes window in Visual Studio 2019, with a 'resolve conflicts' procedure overlay." lightbox="media/vs-2019/resolve-conflicts-new-git-lrg.png"::: </p>1. Verify that **Merge in progress with conflicts** appears. <br>2. The list of files with merge conflicts appears in the **Unmerged Changes** section of the **Git Changes** window. <br>Resolve the conflicts. |

## Next steps

For more information about the new Git experience, see the latest video, [Getting started with Git in Visual Studio](https://www.youtube.com/watch?v=GCZ9x3yqkyc), on YouTube.

## See also
- [The new Git experience in Visual Studio](git-with-visual-studio.md)
- [Work with GitHub accounts in Visual Studio](work-with-github-accounts.md)
3 changes: 2 additions & 1 deletion docs/ide/git-with-visual-studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: The Git experience in Visual Studio
titleSuffix: ""
description: Learn how the new integrated Git experience in Visual Studio 2019 can help you be more productive.
ms.date: 01/15/2021
ms.date: 03/08/2021
ms.topic: conceptual
ms.author: tglee
author: TerryGLee
Expand Down Expand Up @@ -196,6 +196,7 @@ While the new Git experience is now on by default in Visual Studio 2019 [version

## See also

- [Getting started with Git in Visual Studio](https://www.youtube.com/watch?v=GCZ9x3yqkyc) video on YouTube
- [Announcing the Release of the Git Experience in Visual Studio](https://devblogs.microsoft.com/visualstudio/announcing-the-release-of-the-git-experience-in-visual-studio/) blog post
- [The launch of the new Git experience](https://www.youtube.com/watch?v=UHrAg3iKoe0&t) on YouTube
- [The Visual Studio Toolbox series presents: The new Git experience](https://channel9.msdn.com/Shows/Visual-Studio-Toolbox/The-New-Git-Experience) video on Channel 9 and on [YouTube](https://www.youtube.com/watch?v=ZiQ2LXtAJ6I&feature=youtu.be)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/ide/media/vs-2019/clone-repo-new-git-sml.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions docs/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,6 @@
- name: Connect to projects in Team Explorer
displayName: Azure DevOps VSTS
href: ide/connect-team-project.md
- name: New Git experience in Visual Studio
href: ide/git-with-visual-studio.md
- name: Editor
items:
- name: Use the editor
Expand Down Expand Up @@ -903,6 +901,12 @@
href: ide/walkthrough-creating-a-multiple-computer-build-environment.md
- name: Debug >>
href: debugger/index.yml
- name: Version control
items:
- name: The new Git experience in Visual Studio
href: ide/git-with-visual-studio.md
- name: Compare Git and Team Explorer side-by-side
href: ide/git-team-explorer-feature-comparison.md
- name: Test >>
displayName: Unit testing
href: test/index.yml
Expand Down