Cheat Sheet for the Mercurial distributed source version control management tool. System.http://mercurial.selenic.com/
|
hg rollback can undo commit, import, pull, local push, and unbundle. Only use in private repos.
|
|
hg update --clean can cancel an uncommitted merge while losing changes.
|
|
hg archive -rREV filename.zip
|
|
hg archive -rREV filename.tar.gz
|
|
hg add file
|
Begin tracking changes
|
|
hg addremove
|
Track new, forget missing
|
|
hg forget file
|
Stop tracking file
|
|
hg remove file
|
Stop tracking & del
|
|
hg copy file target
|
Copy file
|
|
hg move file target
|
Move file
|
|
hg update tip
|
Update Work to match Tip
|
|
hg update -rREV
|
Update Work to specified Revision
|
|
hg revert
|
Undo all uncommitted changes
|
|
hg diff
|
Lists tracked file changes
|
|
hg diff file
|
List changes to a file
|
|
hg status
|
Lists status of files
|
|
hg log file/dir
|
History of changesets
|
|
hg annotate file
|
Who changed what, when
|
|
hg paths
|
Lists known remote Repos
|
|
hg heads
|
List heads
|
|
hg init Work
|
Creates ./.hg/ subfolder & Repo
|
|
hg add
|
Begin tracking all files
|
|
hg commit -m 'Initial commit'
|
Save files and Commit message to Repo
|
|
hg clone Remote Work
|
|
hg incoming Remote
|
List changesets available
|
|
hg pull
|
Pull all new changesets into Local
|
|
hg pull -r Remote
|
Pull specified changesets into Local
|
|
-u
|
Also Update Working Directory
|
|
hg pull --force unrelated_project
|
|
hg merge
|
|
hg commit
|
|
hg push Remote
|
Push changesets to Remote
|
|
hg share
|
Sync history with parent and siblings
|
|
Repository
|
Repo. Collection of Revisions.
|
|
Revision
|
Rev. Commited changeset, by REV number.
|
|
Changeset
|
Set of Work changes saved as Diffs.
|
|
Diff
|
Changes between files.
|
|
Tag
|
Name for a specific Rev.
|
|
Parent
|
Immediate ancestor of Rev or Work.
|
|
Branch
|
Child of Rev.
|
|
Merge
|
Rev with two parents.
|
|
Head
|
Latest Rev in Branch.
|
|
Tip
|
Latest Rev in ANY Branch.
|
|
Patch
|
All Diffs between two Revs.
|
|
Bundle
|
Patch with permissions and rename support.
|
|
hg
|
Basic command list.
|
|
hg help
|
Full command list.
|
|
hg help command
|
Detailed help reference.
|
|
hg command -option... argument...
|
|
required non-literal reference
|
|
-rREV
|
Specify a Rev number (default parent.)
|
|
-y
|
Don't prompt; pick each first option.
|
|
-q
|
Quiet (supress output.)
|
|
-v
|
Verbose (additional detail)
|
|
-f
|
Force (override reasonable warnings.)
|
Can't start download. http://www.cheatography.com/codeshane/cheat-sheets/mercurial-hg/pdf/ is referring back to http://www.cheatography.com/codeshane/cheat-sheets/mercurial-hg/ :(
Sorry for the late reply, wasn't expecting a Q&A here .. the "share" extension is included with Hg, but disabled by default. The link below explainshow to set it up, hope it helps! http://mercurial.selenic.com/wiki/ShareExtension
Does "hg share" require an extension? Running "hg help share" gets me the "unknown command" error.
Thanks. Plenty of room for improvement, but getting started is the hardest part. :D
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.