Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.57 KB

share-code-review-commit-changes.md

File metadata and controls

20 lines (14 loc) · 1.57 KB
author ms.author ms.date ms.topic ms.service ms.subservice
vijayma
vijayma
10/18/2022
include
azure-devops-repos
azure-devops-repos-git
  1. To see what's changed in a commit, select Git > Manage Branches to open the Git Repository window.

    :::image type="content" source="../media/share-your-code-in-git-vs/visual-studio-2019/git-experience/manage-branches-git-menu.png" border="true" alt-text="Screenshot of in Visual Studio." lightbox="../media/share-your-code-in-git-vs/visual-studio-2019/git-experience/manage-branches-git-menu-lrg.png":::

  2. In the Git Repository window, select your branch, right-click the commit, and then choose View Commit Details to open the Commit window.

    :::image type="content" source="../media/share-your-code-in-git-vs/visual-studio-2019/git-experience/git-repository-window.png" border="true" alt-text="Screenshot of the 'View Commit Details' menu option for a commit in the 'Git Repository' window in Visual Studio." lightbox="../media/share-your-code-in-git-vs/visual-studio-2019/git-experience/git-repository-window-lrg.png":::

  3. In the Commit window, you can right-click on any file and select Compare with Previous to view the file changes made by the commit.

    :::image type="content" source="../media/share-your-code-in-git-vs/visual-studio-2019/git-experience/git-details-window.png" border="true" alt-text="Screenshot of the 'Compare with Previous' option in the Commit pane in Visual Studio." lightbox="../media/share-your-code-in-git-vs/visual-studio-2019/git-experience/git-details-window-lrg.png":::