Checkout a distant repository:
1
$ hg clone https://bitbucket.org/mirror/django
Commit all changes locally:
1
$ hg commit -m "Here is my commit fixing bugs."
Push local commits to the remote repository:
1
$ hg push
Apply latest changes of the remote repository to our local working copy:
1
$ hg pull
Align the current repository to a specific revision:
1
$ hg update -r 502
Restore all changes and files to the state they are in the distant repository:
1
$ hg update -C
My 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 = https
Display the last 5 commits:
1
$ hg log --limit 5
Display the local changes since last commit:
1
$ hg diff
Undo the last local commit:
1
$ hg rollback
Create a tag on a particular revision:
1
$ hg tag -r 432 component-2.6.1
Create a bundle file containing all changes committed locally:
1
$ hg bundle fix-bug.bundle