HG(INIT)
β¨ HG(INIT) β¨
okay so bestie, we're doing hg init today and honestly? iconic. this is the very first thing you ever do with a repo, the origin story, the main character entrance. π
πΈ NAME πΈ
hg init β create a new repository in the given directory π
π¦ SYNOPSIS π¦
hg init [-e CMD] [--remotecmd CMD] [DEST]
π DESCRIPTION π
okay so here's the vibe: you run this and it initializes a brand new repository in the directory you point at. and if that directory doesn't exist yet? no worries, it literally gets created for you. slay. β¨
if you don't give it a directory at all, it just uses the current directory. easy peasy. π«
and here's the part that's lowkey underrated β you can pass an ssh:// URL as the destination. yep, for real. if you wanna know more about that whole situation, go check out hg help urls. iykyk. π«Ά
returns 0 on success. periodt. π
π OPTIONS π
-e,--ssh<CMD>β tell it which ssh command to use. like, specify it. that's the whole thing. π§--remotecmd<CMD>β specify the hg command to run on the remote side. remote bestie gets her own instructions. π--insecureβ do not verify the server certificate. and bestie, note this: it ignores theweb.cacertsconfig. it's giving "living dangerously" energy, so know what you're doing. π
ngl,--insecureis the "trust me bro" of flags. it turns off certificate verification AND ignoresweb.cacerts. use it on purpose, not by accident, okay? π
and that's the whole page, bestie. written by the hg(init) girlies, from the HG(INIT) manual, dated the very same as this page's footer β so consider this the cute sign-off version of that source/version line at the bottom. love u, go make a repo πβπ
π¦ where this page comes from
- arch rolling: mercurial 7.2.4-1 Β· GPL
- fedora 43: mercurial 7.1.1-1.fc43 Β· GPL-2.0-or-later
- fedora 43: mercurial 7.1.1-2.fc43 Β· GPL-2.0-or-later
- fedora 44: mercurial 7.2-1.fc44 Β· GPL-2.0-or-later
- fedora 44: mercurial 7.2.4-1.fc44 Β· GPL-2.0-or-later
- nixos 26.05: mercurial 7.1.2
- nixos 26.05: mercurial-full 7.1.2
- nixpkgs unstable: mercurial 7.2.2
- nixpkgs unstable: mercurial-full 7.2.2
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: mercurial 7.0.1-160000.2.2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms