Quick summary
To edit a commit message in Sourcetree, use the Amend latest commit option in the File Status tab to update your most recent commit without creating a new one. This method rewrites the last commit message locally, making it ideal for fixing typos or improving clarity before pushing to a remote repository.
Steps
- Open Sourcetree and navigate to your repository.
- Click the File Status tab.
- Check the Amend latest commit box, located near the Commit button.
- Edit the commit message in the message box.
- Click Commit to save your changes.
- Your most recent commit message is now updated without creating a new commit.
.gif)



