edit a commit in stash code example Example: git amend git commit --amend -m "an updated commit message"