LinuxCommandLibrary

hg-init

creates a new Mercurial repository in the specified directory or current

TLDR

Create repository in current directory

$ hg init
copy
Create repository in new directory
$ hg init [project-name]
copy

SYNOPSIS

hg init [dest]

DESCRIPTION

hg init creates a new Mercurial repository in the specified directory or current directory if none given. It creates a .hg subdirectory containing all version control data. After initialization, use hg add to track files and hg commit to save changesets. The working directory contains the source files while .hg stores the repository history.

SEE ALSO

hg(1), hg-add(1), hg-commit(1), hg-clone(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community