Académique Documents
Professionnel Documents
Culture Documents
Then, paste the address to the “Source:” of the Clone dialogue box of TortoiseHg.
In the “Destination:”, you can create a local folder of your name, this is where you want
to use it as your local repository(client) for revision, editing, modifying, etc to the file.
Then, click “Clone”, it should start downloading the files from bitbucket.
4. You may see something like the following:
5. Let’s assume that you have made some change to some of the files or even created a
new folder under your local repository. Now, you have to “commit” these changes to your local
repository, where you cloned the folder from the Bitbucket, first. This can be done by right click
the local repository folder -> Hg Workbench, then click the “Commit” icon, and check all the
documents and then click on the Commit Button in the bottom panel, this tells the TortoiseHg
that you made some changes and will create a history/log of the change you made. You may be
asked to input some comment about what and why you made the change. After input the
comment, click the “Commit” to finalize the commit action.
6. If you want to see the log of change, select on a node of the Graph column and then
click the “Revisions Details” icon. The comments and the changes will be shown in one of the
panels.
7. If you happen to like to go to the earlier revision/version of the project, click one of the
revision node and then right click and select the Update, then your local repository is updated to
the revision you selected.
8. After “Commit”, which means create a log/tracking of your local repository, you can then
“Push” to the remote/server repository on Bitbucket. This can be done by click the “Push
outgoing changes to (...server address...)”. This may require you to input your password to
the bitbucket. Once you entered the password, the change you made to the local repository will
be uploaded to the bitbucket.
If you are the person who would like to initiate/create a new repository:
3. In your computer, you may already have some folder which you want to share/push to
the online repository. Here is how you start. Launch TortoiseHg Workbench and click File->New
Repository, then in the Destination path, Browse to the folder which you want to create a local
repository for version control. Then, click Create.
4. Then, check the check box to select the files you want to regulate the version (i.e. to
commit to the local repository). And type some comments. Then, click Commit and Add.
You should see on the top panel, the Rev number change from -1 to 0.
5. To PUSH(i.e. upload) your committed local repository to the online bitbucket, select
the 0+, and click the Push icon. It should pop up a warning message saying that the remote
repository URL or path has not been configured…. Click OK.
6. You should now see a horizontal text bar box with a disk icon in front of it. Please paste
the HTTPS link you copied in Step 2 to the text box(Without hg clone). Then, click the “Push
outgoing changes to selected URL”, then Yes. You might be prompted to enter you
password, then OK. After a moment, depending how large your folder is, you can refresh the
webpage of the Bitbucket, then you should see the files and repository has been pushed there.
7. Let’s say if you made some change to the files, and you want to commit to the local
repository and push to the online bitbucket repository. In the TortoiseHg workbench, select the
top tip in the graph, whose description should show “Working Directory”. Then, click the
“Refresh the list” icon, and check the files changed, then put some comments and click
“Commit”
the file changes are committed to your local repository. Then, you can click the “Push outgoing
changes” icon to push to the online repository.