---
title: "Comment by Raul Robinson Quispe Mendez on \"5 Ways To Undo Mistakes In Git\" | Hashnode"
description: "This one is pretty handy git commit --amend --no-edit Could I change a commit message. The message looks awful! It&#39;s quite useful when you forgot to add som"
url: "https://hashnode.com/posts/5-ways-to-undo-mistakes-in-git/6132113a5b12102f2987bda7/comment/613d5e521821961e2551f68c"
---

[Discussion](https://hashnode.com/posts/5-ways-to-undo-mistakes-in-git/6132113a5b12102f2987bda7)

Comment [5 Ways To Undo Mistakes In Git](https://hashnode.com/posts/5-ways-to-undo-mistakes-in-git/6132113a5b12102f2987bda7)

[Raul Robinson Quispe Mendez](https://hashnode.com/@raulingg)

[Sep 12, 2021](https://hashnode.com/posts/5-ways-to-undo-mistakes-in-git/6132113a5b12102f2987bda7/comment/613d5e521821961e2551f68c)

This one is pretty handy

```
git commit --amend --no-edit
```

**Could I change a commit message. The message looks awful!**

It's quite useful when you forgot to add some files in your last commit and you wanna add them without amending the commit's message.
