DEV Community

Cover image for Git Cheat Sheet πŸ“„ (50 commands + PDF and poster)

Git Cheat Sheet πŸ“„ (50 commands + PDF and poster)

Danny Adams on January 20, 2022

I was tired of looking up the same common Git commands - so I made a cheat sheet that I could print and put on my office wall. This cheat sheet co...
Collapse
 
zoujia profile image
zoujia

Thanks~I used to use git with UI tools like tortoisegit, because I can not remember so many commands. Recently I start to learn git commands, this is what I need, thanks againπŸ‘

Collapse
 
friendbear profile image
T Kumagai

Beautiful.

Collapse
 
doabledanny profile image
Danny Adams

Thank you!

Collapse
 
kumar_sons_off profile image
Priyanshu

This is very handy cheatsheet, thank for sharing Danny πŸ™Œ

Collapse
 
doabledanny profile image
Danny Adams

You're welcome!

Collapse
 
fourwhitesocks profile image
fourwhitesocks

Luv it I just bought the white one :) !!

Collapse
 
doabledanny profile image
Danny Adams

Awesome, thank you!!

Collapse
 
cess11 profile image
PNS11

Looks good but I think I'll stick to the man pages, they're quite good.

Besides 'man git' giving a high level overview suitable for topic search it also lists these learning resources:
gittutorial(7), gittutorial-2(7), giteveryday(7), gitcvs-migration(7), gitglossary(7), gitcore-tutorial(7), gitcli(7), The Git User’s Manual[1], gitworkflows(7)

Collapse
 
doabledanny profile image
Danny Adams

Thanks! Yeah the man pages are great, but my aim was to keep this cheat sheet as the one-page with commands that I most commonly use so it wasn't too overwhelming.

Collapse
 
shyam1319 profile image
Shyam Lal

Realy awesome article!
Thanks a lot.

Collapse
 
robinglory profile image
Robin Glory

Damm!!
Life will be so much easier with this cheat sheet!1

Collapse
 
doabledanny profile image
Danny Adams

Cheers Robin!

Collapse
 
cyberjack profile image
CyberJack

And yet another git article where the "switch" and "restore" commands are missing.

The checkout command has multiple responsibilities, which isn't a good thing. So 2 new commands where created. The "switch" command can be used to create and/or switch to a branch, while the "restore" command can be used to restore working tree files.

Collapse
 
doabledanny profile image
Danny Adams

Thanks for the suggestions - I probably should've included "switch", but just stuck with "checkout" as it's what I always use.

Collapse
 
kaumnen profile image
kaumnen

this is handy, good job!

Collapse
 
doabledanny profile image
Danny Adams

Glad it's useful, thank you!

Collapse
 
sairamnagothu profile image
SairamNagothu

Awesome work πŸ‘

Collapse
 
doabledanny profile image
Danny Adams

Thank you!!

Collapse
 
kg07lema profile image
kennylema

good job bro

Collapse
 
doabledanny profile image
Danny Adams

Thank you!

Collapse
 
smeetsmeister profile image
Jelle Smeets

Great informational post. Thanks for sharing Danny!

Collapse
 
doabledanny profile image
Danny Adams

Glad to hear it's helpful, thanks Jelle!

Collapse
 
chandrasekhar7 profile image
chandrasekhar7

Thank you ❀️

Collapse
 
joset98 profile image
joset98

thank you dude, you are so crack

Collapse
 
doabledanny profile image
Danny Adams

Thank you!

Collapse
 
oumaymasghayer profile image
Oumayma JavaScript Developer

This is helpful, thank you 😊

Collapse
 
doabledanny profile image
Danny Adams

That's great to hear, thank you!

Collapse
 
mijarena profile image
mijarena

I would love to buy the PDF light version. Any chance to do this with paypal.