Hacker News new | ask | show | jobs
by aantix 5850 days ago
I love the cheat gem.

sudo gem install cheat

Then do :

cheat git

A great shortcut to all of the common git command sequences.

1 comments

sweet didn't know about it, it's very handy with my little Mac OS X alias to open preview from command line :

alias preview='groff -Tps > /tmp/tmp.ps && open -a Preview /tmp/tmp.ps'

So you can do :

cheat git | preview

Nice, very cool alias. Thank-you!

P.S. As an added note, there are TONS of cheat sheets out there. Just do a 'cheat sheets' from the command line and you'll get the all listed. Some of the more common ones I would suspect in the HN community are :

cheat svn

cheat rails

cheat named_scope

cheat curl

cheat blueprint

cheat bash

cheat mysql

cheat ruby

Awesome, thanks for sharing that alias.