Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 752 Bytes

File metadata and controls

12 lines (9 loc) · 752 Bytes
ms.date 10/19/2022
ms.topic include
msservice azure-devops-repos
ms.subservice azure-devops-repos-git

In the Git Changes window, optionally stage one or more files, enter a commit message, select Amend, and then choose Commit Staged.

:::image type="content" source="../media/commits/visual-studio-2019/git-experience/amend-commit.png" border="true" alt-text="Screenshot showing the 'Amend Previous Commit' option in the 'Git Changes' window of Visual Studio." lightbox="../media/commits/visual-studio-2019/git-experience/amend-commit-lrg.png":::

The Git Changes window supports amending either the commit message, staged files, or both. When you select Amend, the identifier SHA for the previous commit is displayed.