---
title: "Discussion on \"Top 10 Git Commands Every Developer Should Know\" | Hashnode"
description: "Discussion on \"Top 10 Git Commands Every Developer Should Know\". Git is the most popular version control system. Today, in fact it’s used by over 90% of developers. Let's learn the most-used Git commands."
url: "https://hashnode.com/posts/top-10-git-commands-every-developer-should-know/63f887f5679f7494ea339e3c"
---

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

Discussion

# [Top 10 Git Commands Every Developer Should Know](https://blog.greenroots.info/top-10-git-commands-every-developer-should-know?utm_source=hashnode&utm_medium=feed)

Git is the most popular version control system. Today, in fact it’s used by over 90% of developers. Let's learn the most-used Git commands.

Feb 24, 2023 · 8 min read · blog.greenroots.info  
Updated Nov 29, 2023  
Read the article

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

## Written by

[Tapas Adhikary](https://hashnode.com/@atapas)

@atapas · Bangalore

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

Educator @tapaScript | Founder CreoWis & ReactPlay - Writer - YouTuber - Open Source

Co-Founder, @CreoWis | Teacher, @tapaScript | Founder, @ReactPlay | YouTuber | Writer | Human

## Responses 4

Markdown supported · ⌘↵ to post

[Masoud Ghorbani](https://hashnode.com/@mcrunix)

[Mar 20, 2023](https://hashnode.com/posts/top-10-git-commands-every-developer-should-know/63f887f5679f7494ea339e3c/comment/6417a776a5261ae0a4059697)

This a comprehensive article for those who are just starting out Git. Nice one 👏

[Tapas Adhikary](https://hashnode.com/@atapas)

[Mar 20, 2023](https://hashnode.com/posts/top-10-git-commands-every-developer-should-know/63f887f5679f7494ea339e3c/comment/6417a776a5261ae0a4059697#reply-6417d2fca5261ae0a4059a5c)

Thanks a lot.

[Schalk Neethling](https://hashnode.com/@schalkneethling)

[Feb 26, 2023](https://hashnode.com/posts/top-10-git-commands-every-developer-should-know/63f887f5679f7494ea339e3c/comment/63fb7741a13f5e02f6798171)

Great article, Tapas. I know many people not used to working with version control systems find getting started and remembering the command hard. This is a nice reference for those folks.

I wanted to call your attention to one command you mentioned here that people might misunderstand from how you described it. I am referring to the git rm command.

From the docs ([git-scm.com/docs/git-rm](https://git-scm.com/docs/git-rm)), git rm will remove the file(s) from the working tree and the index. This might be what the user is after, but if they want to only undo the changes they staged, they will need to use git checkout ([git-scm.com/docs/git-checkout](https://git-scm.com/docs/git-checkout)) and reference the commit they want to checkout too. There are also neat flags like --ours and --theirs, which I only learned about recently.

[Tapas Adhikary](https://hashnode.com/@atapas)

[Feb 26, 2023](https://hashnode.com/posts/top-10-git-commands-every-developer-should-know/63f887f5679f7494ea339e3c/comment/63fb7741a13f5e02f6798171#reply-63fb7f0142967b0d40d3686c)

Great call out. I'll edit that part to make things more clear 👍

[Pratama Product](https://hashnode.com/@Pratamaproduct)

[Feb 26, 2023](https://hashnode.com/posts/top-10-git-commands-every-developer-should-know/63f887f5679f7494ea339e3c/comment/63fb62ca42967b0d40d36380)

Very nice article. Thank you for the information

[eric](https://hashnode.com/@immutablePanda)

[Feb 24, 2023](https://hashnode.com/posts/top-10-git-commands-every-developer-should-know/63f887f5679f7494ea339e3c/comment/63f9177309703bf785dcd873)

you mentioned git rebase. can you explain further?

[Tapas Adhikary](https://hashnode.com/@atapas)

[Feb 26, 2023](https://hashnode.com/posts/top-10-git-commands-every-developer-should-know/63f887f5679f7494ea339e3c/comment/63f9177309703bf785dcd873#reply-63fb776a42967b0d40d3672f)

Yep, shall write on it soon.
