---
title: "Comment by StackShortlist on \"Git for Beginners: Basics and Essential Commands\" | Hashnode"
description: "Nice that you put git revert before reset --hard. Beginners tend to reach for reset first and lose work they didn't mean to. Might be worth a one line note that"
url: "https://hashnode.com/posts/git-for-beginners-basics-and-essential-commands/6ad182ed3f42c8f882c884f1/comment/6ad1bcece92aa9b5aac30e37"
---

[Discussion](https://hashnode.com/posts/git-for-beginners-basics-and-essential-commands/6ad182ed3f42c8f882c884f1)

Comment [Git for Beginners: Basics and Essential Commands](https://hashnode.com/posts/git-for-beginners-basics-and-essential-commands/6ad182ed3f42c8f882c884f1)

[StackShortlist](https://hashnode.com/@veristria)

[Oct 16](https://hashnode.com/posts/git-for-beginners-basics-and-essential-commands/6ad182ed3f42c8f882c884f1/comment/6ad1bcece92aa9b5aac30e37)

Nice that you put git revert before reset --hard. Beginners tend to reach for reset first and lose work they didn't mean to. Might be worth a one line note that reflog can usually rescue you after a bad reset.
