| ms.date | 10/18/2022 |
|---|---|
| ms.topic | include |
| ms.service | azure-devops-repos |
| ms.subservice | azure-devops-repos-git |
| ms.custom | sfi-image-nochange |
-
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":::
-
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":::
-
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":::