---
title: "Discussion on \"Basic Git Commands You Should Know\" | Hashnode"
description: "Discussion on \"Basic Git Commands You Should Know\". 15 common and basic commands you should know if you are getting started with Git"
url: "https://hashnode.com/posts/basic-git-commands-you-should-know/62e4edb1430bd1d04a8408b8"
---

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

Discussion

# [Basic Git Commands You Should Know](https://ammaaraslam.hashnode.dev/basic-git-commands-you-should-know?utm_source=hashnode&utm_medium=feed)

15 common and basic commands you should know if you are getting started with Git

Jul 30, 2022 · 8 min read · ammaaraslam.hashnode.dev  
Read the article

-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#git](https://hashnode.com/tag/git)
-   [#programming](https://hashnode.com/tag/programming)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

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

@ammaaraslam · Colombo, Sri Lanka

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

FullStack Developer 👩‍💻 | Tech Enthusiast 🚀 | Foodie 😋 | Blogger 📝

I am a self-taught developer from Sri Lanka with a passion for learning new technologies. Currently proficient in HTML, CSS, JS, ReactJS, Python, Next.js and learning Flutter and Electron.

## Responses 3

Markdown supported · ⌘↵ to post

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

[Saikat Roy](https://hashnode.com/@njmsaikat)

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

Well documented. At a glance git commands for regular often used. bravo

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

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

Thank you Saikat 💙

[Luis Jeranji](https://hashnode.com/@luisjeranji)

[Jul 30, 2022](https://hashnode.com/posts/basic-git-commands-you-should-know/62e4edb1430bd1d04a8408b8/comment/62e4f57f430bd1d04a840a4f)

Very helpful article [Ammaar Aslam](https://hashnode.com/@ammaaraslam). Now I can use your article as a reference every time I forget certain commands and what they do, bookmarked!

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

[Jul 30, 2022](https://hashnode.com/posts/basic-git-commands-you-should-know/62e4edb1430bd1d04a8408b8/comment/62e4f57f430bd1d04a840a4f#reply-62e51300430bd1d04a84103d)

That's great! Glad you find it useful. 🤩
