This guide has covered the concept behind the distributed repository. Once again, you will be prompted to enter your Bitbucket account password. Press the "Push outgoing changes from selected URL" button.Ģ. You will be prompted to enter your Bitbucket account password.ġ. Press the "Pull incoming changes from selected URL" button.Ģ. The guide does not cover the merging process the step to merge revision would be documented separately. This is an important step, because when you detect that someone has make changes to the program before you get to commit your latest changes, you are responsible to integrate their changes (merge) before pushing your version up to distributed repository. Commit changes to distributed repositoryĪs mentioned before, it is advised that you pull incoming changes before you push outgoing changes to the distributed repository. Right click on any folder, select Hg Workbench, and you should be able to view all the revisions of your project. Up to this point, you have successfully created a new local revision for your project. Once everything is correct, commit the changes. Make sure all the changed files are listed on the left side of the dialogue. Enter the changes you make in the textbox on the top-right corner. To commit the changes to your local repository, right click any folders in workspace folder and click on Hg Commit.Ģ. Commit changes to local repositoryĬhanges make to files that are not committed to the repository is highlight with a red exclamation mark.ġ. After solving the conflicts (if any), you would then push your local repository to the distributed repository. After it is done, pulling request should be made to check if there is any conflict between your local repository and the distributed repository. Changes made to the code will first have to be committed to the local repository. When cloning the distributed repository hosted by Bitbucket, local repository will be created. The next section will cover what you should do to push your changes to the distributed repository Pulling and pushing to repository After the process is done, close the Clone dialogue.Ĭongratulation! Up to this step, you should be able to start working on the code. Enter the password for your Bitbucket account.ĥ. You will be prompt to enter your password. We are using different user account, hence the link will be slightly different)Ĥ. (Please do not directly type out the link based on the screenshot. Copy the link from Bitbucket to the Clone dialogue, and select the Clone button. Right click the folder, select TortoiseHg > Clone….ģ. Prerequisitesīefore you can start pulling or pushing your code to the repository, you need to clone the repository from BitBucket. Note: This guide is meant only for the Windows users. This guide will discuss on how to use Bitbucket for your project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |