---
title: "Discussion on \"Useful Git commands.\" | Hashnode"
description: "Discussion on \"Useful Git commands.\". Git commands everyone should know."
url: "https://hashnode.com/posts/useful-git-commands/625bf43c52fb7bd53380fee6"
---

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

Discussion

# [Useful Git commands.](https://sonalirajput.hashnode.dev/useful-git-commands?utm_source=hashnode&utm_medium=feed)

Git commands everyone should know.

Apr 17, 2022 · 5 min read · sonalirajput.hashnode.dev  
Updated Sep 10, 2022  
Read the article

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

## Written by

[heyiamsra](https://hashnode.com/@heyiamsra)

@heyiamsra

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

DevOps/SRE/Platform Engineer

I'm a software engineer focused on building scalable, cloud-native systems.

## Responses 10

Markdown supported · ⌘↵ to post

[Aniket Kharpatil](https://hashnode.com/@aniketkharpatil)

[Jan 18, 2023](https://hashnode.com/posts/useful-git-commands/625bf43c52fb7bd53380fee6/comment/63c7947a0ee439713cee7778)

Awesome

[Ato Sinu](https://hashnode.com/@atosinu)

[Jun 23, 2022](https://hashnode.com/posts/useful-git-commands/625bf43c52fb7bd53380fee6/comment/62b3fcf592447c9aed5b0cd2)

Great 👍 It was helpful for me... I have been working on git over 4 years but still being get stress to use git command sometimes. For now, I got this one!!!

Best Regards.

[heyiamsra](https://hashnode.com/@heyiamsra)

[Aug 28, 2022](https://hashnode.com/posts/useful-git-commands/625bf43c52fb7bd53380fee6/comment/62b3fcf592447c9aed5b0cd2#reply-630ba2d756df9e8e5024f3f4)

Thank you so much for reading

[william mutava](https://hashnode.com/@willypeps)

[Apr 22, 2022](https://hashnode.com/posts/useful-git-commands/625bf43c52fb7bd53380fee6/comment/62632eb40f819f588af75006)

thanks

[heyiamsra](https://hashnode.com/@heyiamsra)

[Apr 24, 2022](https://hashnode.com/posts/useful-git-commands/625bf43c52fb7bd53380fee6/comment/62632eb40f819f588af75006#reply-626591ee5dd5677e9b8def6d)

Glad you liked it

[Rabindra Kumar Mahato](https://hashnode.com/@Rabindra)

[Apr 20, 2022](https://hashnode.com/posts/useful-git-commands/625bf43c52fb7bd53380fee6/comment/625fee1a313088464cfc3f80)

Really helpful thanks for sharing 😊

[heyiamsra](https://hashnode.com/@heyiamsra)

[Apr 20, 2022](https://hashnode.com/posts/useful-git-commands/625bf43c52fb7bd53380fee6/comment/625fee1a313088464cfc3f80#reply-62600c797019274627fd7865)

thank you

[Samiksha](https://hashnode.com/@Cygnus)

[Apr 19, 2022](https://hashnode.com/posts/useful-git-commands/625bf43c52fb7bd53380fee6/comment/625eb5af57bc3611152040b9)

you go girl!!!

[heyiamsra](https://hashnode.com/@heyiamsra)

[Apr 20, 2022](https://hashnode.com/posts/useful-git-commands/625bf43c52fb7bd53380fee6/comment/625eb5af57bc3611152040b9#reply-625f76bc9ad0ef10f07c10fc)

thanks :3

[Sarika Kushwaha](https://hashnode.com/@sarika22)

[Apr 18, 2022](https://hashnode.com/posts/useful-git-commands/625bf43c52fb7bd53380fee6/comment/625cfc5a56e9d1067f601c5c)

Thanks sona for this amazing blog🤗

[heyiamsra](https://hashnode.com/@heyiamsra)

[Apr 18, 2022](https://hashnode.com/posts/useful-git-commands/625bf43c52fb7bd53380fee6/comment/625cfc5a56e9d1067f601c5c#reply-625d6c449ad0ef10f07bdbf7)

aweh thanks

[Snehel](https://hashnode.com/@snehel4510)

[Apr 17, 2022](https://hashnode.com/posts/useful-git-commands/625bf43c52fb7bd53380fee6/comment/625c244852fb7bd533810383)

Great work vro👏 Keep writing

[heyiamsra](https://hashnode.com/@heyiamsra)

[Apr 18, 2022](https://hashnode.com/posts/useful-git-commands/625bf43c52fb7bd53380fee6/comment/625c244852fb7bd533810383#reply-625cd34756e9d1067f6019a4)

thanks snehel

[Swapna Kumar Panda](https://hashnode.com/@swapnakpanda)

[Apr 17, 2022](https://hashnode.com/posts/useful-git-commands/625bf43c52fb7bd53380fee6/comment/625bffb852fb7bd53380ffa0)

I liked the analogy you made to describe Git commands. 😊

Suggestion: You could put numbers besides heading of each command. It may become a little easy to notice those commands in this big article.

[heyiamsra](https://hashnode.com/@heyiamsra)

[Apr 17, 2022](https://hashnode.com/posts/useful-git-commands/625bf43c52fb7bd53380fee6/comment/625bffb852fb7bd53380ffa0#reply-625c245552fb7bd53381038a)

yep ,thank you for suggesting I'll add it

[Sandip Kumar](https://hashnode.com/@sandip77)

[May 15, 2023](https://hashnode.com/posts/useful-git-commands/625bf43c52fb7bd53380fee6/comment/625bffb852fb7bd53380ffa0#reply-64625bc3f72e54ac2a30439c)

yes , same suggestion pls
