Jan 13
Why, oh why do you do
and things work fine, but then if you instead dared to try
you wouldn’t get an error, your computer would just blink at you and then move on. You have to instead insert a colon:
and the file magically appears.
git checkout sha1 filename
git show sha1 filename
git show sha1:filename
But try and put the colon back in for checkout and what do you get? A nice, friendly fatal error. I will be trying mercurial as soon as I get a chance. I hope they have some scripts to migrate two-year-old git repos to mercurial.
> git checkout sha1:filename
fatal: reference is not a tree: sha1:filename