---
title: "Comment by Subham Sahu on \"Basic Git Commands You Should Know\" | Hashnode"
description: "Nice article. I would recommend every beginner to know the following command too: git reflog It&#39;s the best way to restore a wrong RESET , branch deletion ,"
url: "https://hashnode.com/posts/basic-git-commands-you-should-know/62e4edb1430bd1d04a8408b8/comment/62ebf923f583cc2636e53bc0"
---

[Discussion](https://hashnode.com/posts/basic-git-commands-you-should-know/62e4edb1430bd1d04a8408b8)

Comment [Basic Git Commands You Should Know](https://hashnode.com/posts/basic-git-commands-you-should-know/62e4edb1430bd1d04a8408b8)

[Subham Sahu](https://hashnode.com/@subhamx)

[Aug 4, 2022](https://hashnode.com/posts/basic-git-commands-you-should-know/62e4edb1430bd1d04a8408b8/comment/62ebf923f583cc2636e53bc0)

Nice article. I would recommend every beginner to know the following command too:

```
git reflog
```

It's the best way to restore a wrong `RESET`, `branch deletion`, etc. It came in handy multiple times throughout my dev journey.

Ref: [git-scm.com/docs/git-reflog](https://git-scm.com/docs/git-reflog)

[Ammaar Aslam](https://hashnode.com/@ammaaraslam)

[Aug 4, 2022](https://hashnode.com/posts/basic-git-commands-you-should-know/62e4edb1430bd1d04a8408b8/comment/62ebf923f583cc2636e53bc0#reply-62ebfc1acbce7c268014e276)

Thank you [Subham Sahu](https://hashnode.com/@subhamx) for sharing!
