Hacker News new | ask | show | jobs
by dotancohen 12 days ago
You actually could have the same effect as `hg init` with `git init`, but the command I mentioned leaves no working directory so uses less space on the server. Potentially hundreds of megs of disk space are worth a dozen keystrokes, no?
1 comments

If you absolutely want nothing checked out, `hg update null`. Again "bare repos" are an absolutely unnecessary cognitive burden an UX papercut just like many things git.
You don't have to use bare repos, I just prefer them. You can use `git init` and ignore the working directory, just like you apparently [can] do in hg.
JFTR, it used to matter for push-ability whether it's bare or not, it appears to have changed in the recent years.