Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I remember the first time I tried git, circa 2006, and the first 3 commands I tried were:

    git init
    git commit -am Initial\ commit
    git clone . ssh://server/path/to/repo
And it didn’t work. You have to ssh to the remote server and “git init” on a path first. How uncivilized.

Bitkeeper and a few other contemporaries would let you just push to a remote path that doesn’t exist yet and it’d create it. Maybe git added this since then, but at the time it seemed like a huge omission to me.



Hah, you made me check whether clone's second argument can be a URL. But no, it's explicitly "<directory>", so it can't be used as a equivalent of "git push --mirror" :)


[flagged]


Lol I have no idea why you came away with “… and I never used git again!” from all that.

I love git. It’s unironically one of my favorite pieces of software in the world. I’ve used it nearly every day for almost 20 years.

Maybe take a break from HN for a bit, I mean that sincerely.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: