GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing zrusin.blogspot.com — Git cheat sheet

Monday, September 10, 2007

Git cheat sheet

Due to the fact that I've been moving I forgot to point out that about three weeks ago I created a small Git cheet sheet. Quoting my email to the Git mailing list: I took a short break from being insanely handsome (which takes a lot of my time - gorgeous doesn't just happen) and based on similar work for Mercurial created a little SVG cheat sheet for Git. I'm not sure if it's going to be useful for anyone else (the target audience was composed of engineers who agreed to move to and work from Norway so you know right of the bat that historically they already made some bad decisions), but the times when I do art are so rare that I feel the need to share.

The thing that I took from the Mercurial sheet, besides the idea, is the flow-chart (people dig icecream and flow-charts, the first one is really hard to get into a SVG rendering so I went with the second) so the license is the same as of the Mercurial sheet which was Creative Commons. There's likely a few errors in it and if you have any suggestions or if you sport latex pants and a fancy green hairdo that goes with those pants (which equals the fact that you're an artist) and would like to pimp the sheet out, it would be my pleasure to help you.




The SVG is at:
http://byte.kde.org/~zrusin/git/git-cheat-sheet.svg
Sample png's are here:
http://byte.kde.org/~zrusin/git/git-cheat-sheet-medium.png
http://byte.kde.org/~zrusin/git/git-cheat-sheet-large.png

I also got up to speed on all the latest announcements. I thought that the Novell's Spotlight collaboration announcement was disappointing. I'm referring to the "Microsoft will provide Novell the specifications for Silverlight".

Richard Leakey once said "We are human because our ancestors learned to share their food and their skills in an honored network of obligation". I love that quote because it so beautifuly describes what we, so heavly, rely on in the Open Source community. For a company to take from the great ocean of free knowledge, led by an open standard of SVG and end up with a closed specification is just disgusting. Seeing an Open Source company strike a deal to cooperate on that closed technology is just sad to me. I understand why they did it but understanding something doesn't make it morally right.

I really hope, pointlessly as it might be, that the work on the Silverlight specification and the specification itself will be open. You obviously thought that SVG isn't good enough for your purposes and you built on top the experiences and ideas taken from SVG. Let us improve SVG based on your experiences and ideas. Once we've done that, you'll be able to repeat that process again. That's the way it works and that's the way our society has always worked.

Despite what you might think, you don't own ideas, they belong to us all.
Posted by Zack at 9/10/2007 09:06:00 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Git, graphics

43 comments:

Anonymous said...

can you give a link to the mentioned mercurial cheat sheet, please.

September 10, 2007 at 10:52 AM
Anonymous said...

http://www.ivy.fr/mercurial/ref/v1.0/

PDF, PNG, and SVG Format are here. It is also linked to from the hg wiki if you lose this link.

I like the color scheme Zack picked for his sheet. It's very nice. :-)

September 10, 2007 at 12:52 PM
elvis said...

Ah this is great Zack. Now I just might try this new-fangled Git thing!

September 10, 2007 at 1:24 PM
Anonymous said...

How do you create such beautiful layout, Zach ?

Gimp ?

-- the ignorant

September 10, 2007 at 4:06 PM
Anonymous said...

If you look at the source code of the SVG with a text editor it says it was created with Inkscape 0.45.1.

September 10, 2007 at 4:50 PM
Anonymous said...

If that's actually made with Inkscape, I have to wonder whether it would be more efficient to come up with something like LaTeX Beamer for these sorts of projects - pre-themed or slightly customizable.

September 10, 2007 at 7:21 PM
ulrik said...

it looks great. I printed it.

September 10, 2007 at 10:51 PM
Anonymous said...

wow. great!

September 11, 2007 at 7:13 AM
Anonymous said...

Wow, your post was linked by Version Control Blog.

PS: Good work

September 11, 2007 at 10:04 PM
Anonymous said...

Zack do u think such a cheat sheet would be usefull on wikipedia?!
IMO i got more an idea on whats GIT
doin from ur sheet then from the desciption at wikipedia ;)

September 13, 2007 at 8:35 PM
Anonymous said...

As a buffered consciousness, one would suppose that Norway would possess some of the world's finest ice cream. Alas, much like the inuit, of dog eating fame, the spastics declared war on all things chilly and dairy cows were ordained lovers rather than tits with legs, which we all know they are. If your have had several strokes, and have lost the ability to differentiate between creamy ice cream goodness, and frozen processed fish ball, then Norway becons, with a big luscious icecream cone in its hand. Enjoy Mr Zander!! Have some sprinkles, which are actually arctic rat turds.

September 21, 2007 at 2:30 AM
jim said...

Thank you thank you thank you!

By the way, please change the date format in your blogger template to show dates for comments! It shows only the time, not the date.

December 14, 2007 at 6:35 PM
Anonymous said...

Beautiful. Thanks for putting this together.

Here's a PDF of it.

December 31, 2007 at 10:40 PM
Anonymous said...

Not sure if already around, but here's an A4 version of this really great cheat sheet for european printers:

git-cheat-sheet-a4.pdf

git-cheat-sheet-a4.svg

sam

February 5, 2008 at 1:19 PM
Anonymous said...

Bottom right hand corner: "merge conclicts"

April 14, 2008 at 5:48 AM
Anonymous said...

one useful thing that's not mentioned (and that I didn't find in any of the git tutorials either):

git checkout -f

This is the same as "svn revert": it undoes any local changes you've made since the last checkout.

April 14, 2008 at 9:21 AM
jim said...

So:
git checkout -f
is similar to:
git reset --hard

Is this correct?

April 14, 2008 at 5:40 PM
Unknown said...

@jim: you're right, I missed that one! They're not just similar, by reading up on git I saw they do the same thing. I guess I didn't notice since "git reset" is mostly used to remove whole commits (like in "git reset --hard HEAD^". Thanks.

April 15, 2008 at 8:08 AM
jim said...

I imagine there might be some difference between "git checkout -f" and "git reset --hard". But the documentation says that "git reset --hard" is used by "git stash", so if there is a difference I think it that "reset" is probably cleaner.

I suspect the difference might be that "git checkout -f" perhaps leaves new files (those added with "git add") whereas reset would remove them? Not sure -- just speculating.

April 15, 2008 at 2:17 PM
Anonymous said...

Great Work Zack. I've posted the cheat sheet on http://TechCheatSheets.com

-Steven

April 22, 2008 at 6:20 PM
Anonymous said...

This is a great site. Thank you for your information. I THANK YOU I SALUTE YOU IT,S A AMZING SITE.

July 14, 2008 at 8:09 PM
Ten above said...

Thanks Sam and Zack!

August 5, 2008 at 6:02 AM
Unknown said...

Zack,
I just send you an email to your KDE.org email address with an updated version of the sheet.
I would like to further improve it, just let me know if you like it and if I should contact you on a different email address (that's the only I found out).

Thanks.

August 25, 2008 at 11:14 AM
Murad said...

Thank you a lot.

October 22, 2008 at 9:42 PM
Anonymous said...

Thank you for your nice cheat sheet.
I translated into Japanese.
http://www.textdrop.net/document/git-cheat-sheet-ja/

October 25, 2008 at 1:53 PM
dilipm79 said...

It's precise.

November 22, 2008 at 6:21 AM
Anonymous said...

Zack, if possible... a PDF of this, please.

January 23, 2009 at 12:57 AM
Adda said...

Hi,

I would like to translate your in french this work. Could you pls send me the templates ?

It will be helpful for my students to understand and use Git :-)

Thanks in advance,

Addame

January 28, 2009 at 4:15 PM
Anonymous said...

Thanks for this . . . I'm printing off a few of these for a quick reference (so friends of mine don't keep bugging me on how to do something with git . . .).

February 20, 2009 at 7:18 PM
Anonymous said...

There seems to be a problem accessing the cheatsheets.

:(

March 19, 2009 at 5:58 AM
Anonymous said...

Another useful (but really powerful / dangerous): git rebase -i HEAD~10 will show the last 10 commits. You can squash them down into a single commit, edit a commit, or (this is the dangerous part) delete a line and it will delete that commit.

I also expand on the tagging. My tag (have to always look this up): git tag -s -m "Ready for prime time" 1.0 will pgp sign the tag (looks up via the author email). This way someone can verify that it was actually me that tagged it and not some random person.

March 29, 2009 at 7:17 AM
Igor Milovanović said...

Thanks! Very usefull.

June 10, 2009 at 3:01 PM
Geshan Manandhar said...

Very good cheat sheet.

October 24, 2009 at 3:14 AM
Hylke said...

I don't have green hair but I restyled your work :)
http://www.flickr.com/photos/26546578@N06/4193814990/
I left out some stuff like bisec because I don't use that (yet)

December 20, 2009 at 4:02 PM
e40 said...

If you "git format-patch origin" and you've switched branches since you cloned, it will do the wrong thing. So, the best way to specify it is "git format-patch origin/$branch" where $branch is the branch you are on.

February 6, 2010 at 1:45 AM
Anonymous said...

Git add should really be in there. Git add --patch is especially useful.

April 19, 2011 at 3:18 AM
Anonymous said...

cheat sheet links are broken!

July 20, 2011 at 11:23 AM
Edward Garson said...

all links broken :-(

July 21, 2011 at 4:22 PM
Anonymous said...

Links dead, indeed. But thank you anyway.

July 26, 2011 at 6:27 PM
Joe Good said...

The only link that still appears to work is the one where somebody copied it up to Flickr:

http://www.flickr.com/photos/26546578@N06/4193814990/in/photostream/lightbox/

July 28, 2011 at 2:16 PM
Joe Good said...

http://appletree.or.kr/quick_reference_cards/cvs-subversion-git/git-cheat-sheet.pdf

Different take based on Zack's original work.

July 28, 2011 at 2:18 PM
jim said...

Joe, thanks for the new link! Looks interesting.

July 31, 2011 at 4:54 PM
Stephanie said...

I added the original files to a git repository.

https://github.com/nerdgirl/git-cheatsheet-visual

September 9, 2011 at 7:35 PM

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

My photo
Zack
View my complete profile

Links

  • FreeDesktop.org
  • X.Org
  • KDE

Blog Archive

  • ► 2013 (1)
    • ► October (1)
  • ► 2011 (3)
    • ► September (2)
    • ► April (1)
  • ► 2010 (8)
    • ► November (1)
    • ► October (1)
    • ► July (1)
    • ► June (1)
    • ► April (1)
    • ► March (1)
    • ► February (2)
  • ► 2009 (11)
    • ► November (1)
    • ► September (1)
    • ► August (2)
    • ► May (2)
    • ► March (2)
    • ► February (3)
  • ► 2008 (8)
    • ► August (3)
    • ► June (2)
    • ► March (1)
    • ► February (2)
  • ▼ 2007 (30)
    • ► December (1)
    • ► November (1)
    • ► October (1)
    • ▼ September (4)
      • Gallium3D, Shaders and LLVM
      • Gallium3D
      • Git cheat sheet
      • Quasar
    • ► August (2)
    • ► July (3)
    • ► June (1)
    • ► May (3)
    • ► April (2)
    • ► March (2)
    • ► February (2)
    • ► January (8)
  • ► 2006 (31)
    • ► December (1)
    • ► November (4)
    • ► October (6)
    • ► September (1)
    • ► August (5)
    • ► July (8)
    • ► June (1)
    • ► May (5)
You are visitor 01402860 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.