Ben Chuanlong Du's Blog

It is never too late to learn.

Mercurial for Git Users

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Mercurial and Git Equivalent Commands

Mercurial source code management system

The codes used to show the status of files are:

M = modified
A = added
R = removed
C = clean
! = missing (deleted by non-hg command, but still tracked)
? = not tracked
I = ignored
  = origin of the previous file (with --copies)

Remove a missing file from tracking.

hg remove -A

Some Useful Command

List changed files with their status.

hg pstatus

List changed files without status.

hg pstatus --no-status

.hgignore

https://wiki.mercurial-scm.org/.hgignore

References

Comments