LinuxCommandLibrary

hg

distributed version control system

TLDR

Initialize repository

$ hg init
copy
Clone repository
$ hg clone [url]
copy
Show status
$ hg status
copy
Add files
$ hg add [files]
copy
Commit changes
$ hg commit -m "[message]"
copy
View log
$ hg log
copy
Pull changes
$ hg pull
copy
Push changes
$ hg push
copy

SYNOPSIS

hg command [options]

DESCRIPTION

Mercurial (hg) is a distributed version control system. It tracks changes in source code and supports branching, merging, and collaboration.
Mercurial is similar to Git but with different command syntax and philosophy. It emphasizes simplicity and consistency in its interface.

PARAMETERS

COMMAND

Mercurial command.
init
Create repository.
clone
Clone repository.
status
Show working directory status.
add
Add files.
commit
Commit changes.
log
Show history.
pull
Pull from remote.
push
Push to remote.
--help
Display help information.

CAVEATS

Less popular than Git. Different workflow. Extension system for features.

HISTORY

Mercurial was created by Matt Mackall in 2005, shortly after Git, as another solution for Linux kernel development.

SEE ALSO

git(1), svn(1), hg-clone(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community