There are already a couple of official quick start guides to using Mercurial’s Window’s client program TortoiseHG, but below are the bare details of how to use it with a new account on the BitBucket service.
1. Create a new account on http://bitbucket.org/. Then create a new repository for your code.
2. Download the TortoiseHG program for Windows from http://tortoisehg.bitbucket.org/. Install and reboot. This will add context commands to Windows Explorer.
3. Right-click on a folder in Windows Explorer that contains the code files or scripts you want to add to your BitBucket account, and select “Create Repository Here” from the context menu.
4. Next right-click in the folder and select “Add Files.” You can now check which files in the folder you wish to add to BitBucket, and click the “Add” button.
5. Right-click again in the folder and select “Hg Commit.” The screen below should appear. You can enter a text description for the update (“add tilecache script” in the image below). Once you’ve done this click the “Commit” button in the toolbar.
6. Right-click again in the folder and select “Hg Repository Explorer.” Add the name of your BitBucket repository to the address bar as shown below. In this case my repository is http://bitbucket.org/geographika/mapserver-scripts – yours should be in a similar format.
7. In the menu select “Synchronize” and then “Push”
8. You should be presented with a confirmation dialog as below. You will be asked for your username and password for BitBucket (step 1). That’s it! You can then check your code online, and learn the rest at your own pace! Let me know if you’ve posted anything good in the comments below!