DEV Community

Cover image for Git Cheat Sheet with 40+ commands & concepts

Git Cheat Sheet with 40+ commands & concepts

Tapajyoti Bose on November 13, 2022

Tired of memorizing git commands? Here is a cheat sheet with 40+ commands to simplify your life. 1. Initialize a local repository gi...
Collapse
 
jgurtz profile image
Jason Gurtz

Couple cool things missed:

git branch -vv               # additionally shows upstream,
                             # tracked branch details

git diff branch1..branch2    # diff between two branches
Enter fullscreen mode Exit fullscreen mode
Collapse
 
kingme profile image
KingMe 🤴🏾

Git diff, thanks 😉

Collapse
 
channaveer profile image
Channaveer Hakari • Edited

If you could add tagging & cherrypick then it would be great addon to the list

Collapse
 
ruppysuppy profile image
Tapajyoti Bose

Yeah, I missed those 😅

Collapse
 
chiragagg5k profile image
Chirag Aggarwal

Definitely a good list, but I would suggest everyone to make their own versions. Trust me it’s lot better feeling to read the documentation you are completely aware of in future

Collapse
 
madza profile image
Madza

Valuable list 👍💯✨

Collapse
 
ruppysuppy profile image
Tapajyoti Bose

Thanks! Means a lot coming from you!

Collapse
 
javlonfattoev profile image
Javlon Fattoev

cool

Collapse
 
idktech profile image
Ivaylo

Great article! Huge help.

Collapse
 
gemasaputera profile image
Gema Saputera

nice post

Collapse
 
koleajeolayinka profile image
KOLEAJEOLAYINKA

The information you shared is very helpful

Collapse
 
kalifasenou profile image
Kalifa SENOU

Thanks you, we need it !

Collapse
 
kawsar19 profile image
kawsar ahmed

cool list

Collapse
 
jamessimel profile image
Simel James

Woooah💯🎉💕 I whole course on git
Thanks @ruppysuppy

Collapse
 
laurianoelmiroduarte profile image
Lauriano Elmiro Duarte

very good

Collapse
 
wisdomudo profile image
WISDOMUDO

Cool list

Collapse
 
anubhavitis profile image
Anubhav Singhal

Great list buddy. Saving it for future reference.

Collapse
 
drsturla profile image
sturla ardani

Thanks, great post!

Collapse
 
rutamhere profile image
Rutam Prita Mishra

This was really insightful. Kudos!

Collapse
 
yukikimoto profile image
Yuki Kimoto - SPVM Author

I use git and Perl combination in my product. It is easy to understand branches. Thanks.

Collapse
 
davidbojkovski profile image
David Bojkovski

It would be nice to mention git switch as well