author | ms.author | ms.date | ms.topic | msservice | ms.subservice |
---|---|---|---|---|---|
vijayma |
vijayma |
10/19/2022 |
include |
azure-devops-repos |
azure-devops-repos-git |
In the Git Changes window, enter a message that describes your staged changes and then select Commit Staged.
:::image type="content" source="../media/commits/visual-studio-2019/git-experience/commit-staged.png" border="true" alt-text="Screenshot showing the commit information link in Visual Studio." lightbox="../media/commits/visual-studio-2019/git-experience/commit-all-lrg.png":::
Select the commit link for commit details.
:::image type="content" source="../media/commits/visual-studio-2019/git-experience/commit-confirmation.png" border="true" alt-text="Screenshot showing the commit details link the 'Git Changes' window in Visual Studio." lightbox="../media/commits/visual-studio-2019/git-experience/commit-confirmation-lrg.png":::
Note
If all your changes are unstaged, you can skip staging and directly commit by choosing Commit All.
:::image type="content" source="../media/commits/visual-studio-2019/git-experience/commit-all.png" border="true" alt-text="Screenshot of the 'Commit All' option in the 'Git Changes' window in Visual Studio." lightbox="../media/commits/visual-studio-2019/git-experience/commit-all-lrg.png":::