---
title: "Discussion on \"Git for Beginners: Basics and Essential Commands\" | Hashnode"
description: "Discussion on \"Git for Beginners: Basics and Essential Commands\". New to Git? Learn what Git is, why developers use it, the three areas of Git, and the essential commands: init, add, commit, log, revert, and reset."
url: "https://hashnode.com/posts/git-for-beginners-basics-and-essential-commands/6ad182ed3f42c8f882c884f1"
---

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

Discussion

# [Git for Beginners: Basics and Essential Commands](https://hardikdotdev.hashnode.dev/git-for-beginners-basics-and-essential-commands?utm_source=hashnode&utm_medium=feed)

New to Git? Learn what Git is, why developers use it, the three areas of Git, and the essential commands: init, add, commit, log, revert, and reset.

Oct 16 · 4 min read · hardikdotdev.hashnode.dev  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#github](https://hashnode.com/tag/github)
-   [#version-control](https://hashnode.com/tag/version-control)
-   [#git-for-beginners](https://hashnode.com/tag/git-for-beginners)
-   [#git-commands](https://hashnode.com/tag/git-commands)
-   [#git-basics](https://hashnode.com/tag/git-basics)
-   [#git-commit](https://hashnode.com/tag/git-commit)
-   [#git-revert](https://hashnode.com/tag/git-revert)
-   [#git-reset](https://hashnode.com/tag/git-reset)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Hardik Babla](https://hashnode.com/@hardikbabla)

@hardikbabla · dehradun, india

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

Btech CSE l Learning Full-Stack @ ChaiCode l Learning in Public 🚀

## Responses 1

Markdown supported · ⌘↵ to post

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