Checkout a distant repository:
1
$ hg clone https://bitbucket.org/mirror/djangoCommit all changes locally:
1
$ hg commit -m "Here is my commit fixing bugs."Push local commits to the remote repository:
1
$ hg pushApply latest changes of the remote repository to our local working copy:
1
$ hg pullAlign the current repository to a specific revision:
1
$ hg update -r 502Restore all changes and files to the state they are in the distant repository:
1
$ hg update -CMy minimal ~/.hgrc config file:
[ui] username = Kevin Deldycke <[email protected]> verbose = True [auth] # BitBucket creds bb.prefix = bitbucket.org bb.username = kdeldycke bb.password = XXXXXXXXXXX bb.schemes = httpsDisplay the last 5 commits:
1
$ hg log --limit 5Display the local changes since last commit:
1
$ hg diffUndo the last local commit:
1
$ hg rollbackCreate a tag on a particular revision:
1
$ hg tag -r 432 component-2.6.1Create a bundle file containing all changes committed locally:
1
$ hg bundle fix-bug.bundle