Exporting a Git Repository

Git LogoAnother one of my Git complaints (up until now) was that I didn’t know how to export a repository so that it excluded all of the .git files/folders (similar to the way that svn export works). Well, another one bites the dust.

git checkout-index -a -f --prefix=/path/to/folder/

Make sure the –prefix folder path includes a trailing slash.

–prefix supports relative paths as well.

I should also add that you should make sure you commit your latest changes, or they won’t be included – even if they’re saved. This is probably obvious, but I sometimes overlook the obvious :)

Canvas First Thoughts

HTML5I hate Flash.

Shockwave was cool when it first came out. And those stickman ninja spy animations were fantastic when Flash was first released. But overall it’s been abused. Whenever I see a Flash nav menu I die a little inside, no matter how fancy it is. So I was super excited when I started reading/hearing about HTML5 Canvas.

Commit / Version Numbers with Git

Git LogoMy biggest out-of-the-box Git complaint is that it uses SHA1 hashes to identify each commit.  Technically this makes a lot of sense, but from a human readability standpoint it sucks.  And by looking at two commit hashes, you don’t know how many commits were in between them.

So, here’s the methodology I use to keep track of commit numbers and get a little bit of version numbering out of the deal.

Browse iPhone Simulator Safari SQLite Databases

SQLiteI recently started doing some iPhone dev with PhoneGap. I’m using the Simulator included with Xcode and the iPhone SDK because it makes debugging faster and easier than an actual iPhone, and also I don’t have an actual iPhone. I do have an iPod Touch, but it’s lacking a lot of the features that make mobile apps cool, so I’m stuck with the Simulator for now. At any rate, I realized quickly that having a facility to browse the Safari-created SQLite databases would simplify my life profusely.