---
title: "Discussion on \"5 Ways To Undo Mistakes In Git\" | Hashnode"
description: "Discussion on \"5 Ways To Undo Mistakes In Git\". If you’re no stranger to developer workflow then you know that sometimes - Git happens! The good news is that in most cases Git offers us a way out of a sticky situation we coded ourselves into. \nBecause of its decentralized nature, there is no singl..."
url: "https://hashnode.com/posts/5-ways-to-undo-mistakes-in-git/6132113a5b12102f2987bda7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [5 Ways To Undo Mistakes In Git](https://ygnys.hashnode.dev/5-ways-to-undo-mistakes-in-git?utm_source=hashnode&utm_medium=feed)

If you’re no stranger to developer workflow then you know that sometimes - Git happens! The good news is that in most cases Git offers us a way out of a sticky situation we coded ourselves into. Because of its decentralized nature, there is no singl...

Sep 3, 2021 · 5 min read · ygnys.hashnode.dev  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#developer](https://hashnode.com/tag/developer)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#productivity](https://hashnode.com/tag/productivity)

## Written by

[Agnieszka](https://hashnode.com/@Ygnys)

@Ygnys

  
[View profile](https://hashnode.com/@Ygnys)

Software Development

@ GitLive

## Responses 15

Markdown supported · ⌘↵ to post

[Christian Evan](https://hashnode.com/@chellily1110)

[Aug 26, 2022](https://hashnode.com/posts/5-ways-to-undo-mistakes-in-git/6132113a5b12102f2987bda7/comment/630902c738843b7139783445)

Thank you very much to the blog's author; this is a wonderfully constructed website with a wealth of fascinating stuff.

[hala madrid](https://hashnode.com/@Aonfeni123)

[Aug 19, 2022](https://hashnode.com/posts/5-ways-to-undo-mistakes-in-git/6132113a5b12102f2987bda7/comment/62ff11de9732520056da3dee)

good

[boystrong1003 eddy](https://hashnode.com/@sieunhan)

[Jul 29, 2022](https://hashnode.com/posts/5-ways-to-undo-mistakes-in-git/6132113a5b12102f2987bda7/comment/62e39f42d7b405bea155a5ef)

Thank you very much to the owner of the blog, this is a beautifully designed site with a lot of interesting and rich content, [bubble shooter](https://bubbleshootergame.online/) with a lot of people participating.

[Reese Lowel](https://hashnode.com/@oohaiho)

[Jul 18, 2022](https://hashnode.com/posts/5-ways-to-undo-mistakes-in-git/6132113a5b12102f2987bda7/comment/62d4baaa2f40e31decd8e612)

excellent advice, and the change message feature is quite helpful. I appreciate you posting this, Agni. [fnaf security breach](https://fnafsecuritybreach.co/)

[Reese Lowel](https://hashnode.com/@oohaiho)

[Jul 15, 2022](https://hashnode.com/posts/5-ways-to-undo-mistakes-in-git/6132113a5b12102f2987bda7/comment/62d12ed67055dcf04d0ee20c)

I am appreciative of the information. It was a great help to me! [fnaf security breach](https://fnafsecuritybreach.co/)

[Henry William](https://hashnode.com/@Williamhenry)

[Dec 8, 2021](https://hashnode.com/posts/5-ways-to-undo-mistakes-in-git/6132113a5b12102f2987bda7/comment/61b07f32079fa33c08610c6a)

Thanks for the information. It really helped me!One of the games that I like the most is [squid game games](https://squidgamegames.com/) . It is a very hot shooter genre globally. In which we can chat, make friends to exchange. And especially, it can also entertain us. If you are also a fan of the shooting genre. Then I recommend you try to download this app! It will not disappoint you!

[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.

[Efrén Vázquez](https://hashnode.com/@efrensho)

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

Already bookmarked. Thanks!

[Yuri](https://hashnode.com/@YuriCodesBot)

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

Lifesaver kind of article!

[Ashish maurya](https://hashnode.com/@theashishmaurya)

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

Amazing this gonna be useful.

[kishore kumar](https://hashnode.com/@kch)

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

very useful tips, and the modify message is really handy ... thanks for putting this Agni :)

[ganesh bhurewar](https://hashnode.com/@ganeshbhurewar)

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

nice
