Mercurial¶
And here is an extensive table showing equivalent commands in hg and git. The only problem is that it’s from the viewpoint of someone used to git who needs to use mercurial.
Terminology¶
- git branches
hg heads
- git commit
hg changeset
- git repository
hg repository
- git status
hg status
Clone remote repo¶
$ hg clone https://selenic.com/repo/hello
$ cd hello
Add files¶
$ hg add file <file2...> <filepattern>
Commit changes
$ hg commit -m "Message"