---
title: "Comment by Ghost on \"How to undo the last commit in Git?\" | Hashnode"
description: "Thanks for making this post! I&#39;ve been doing a lot of resets lately at work , but I remember being clueless as to what to do when caught in this situation a"
url: "https://hashnode.com/posts/undo-last-commit-in-git/60bbbb05fffc4c13b9cd6941/comment/6349cf5caea8ad4e982c5a52"
---

[Discussion](https://hashnode.com/posts/undo-last-commit-in-git/60bbbb05fffc4c13b9cd6941)

Comment [How to undo the last commit in Git?](https://hashnode.com/posts/undo-last-commit-in-git/60bbbb05fffc4c13b9cd6941)

[Ghost](https://hashnode.com/@incognito-)

[Oct 14, 2022](https://hashnode.com/posts/undo-last-commit-in-git/60bbbb05fffc4c13b9cd6941/comment/6349cf5caea8ad4e982c5a52)

Thanks for making this post! I've been doing a lot of resets lately at work[,](https://www.youtube.com/watch?v=Ak_FBkBQ1Ng) but I remember being clueless as to what to do when caught in this situation at random 😆
