Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


...

Info
titleImportant Note

At the end of this topic, Qualitia admin user will be able to install and configure Sourcetree.


Multiexcerpt macro
nameInstallandConfigureSourceTree

Install SourceTree and Configure Credentials

In order to start working with your Bitbucket repositories, you must first install and configure sourceTree. 

  1. Download and install SourceTree.
  2. Post installation, launch SourceTree.
  3. From the Tools menu, select Options.
  4. In Authentication, click Add.
    1. Set Hosting Service as Bitbucket.
    2. Enter the Host / IP and port number where Bitbucket server is hosted.
      This option is only available for Bitbucket Server edition. 
    3. Set Prefered Protocol as HTTPS.
    4. Authentication as Basic.
    5. In Username, enter your Bitbucket account username.
    6. Click Refresh Password to authenticate username.

      An Authentication window appears.
    7. Enter your Bitbucket password.
    8. Select the Remember Password option and then click Login.
      SourceTree is now configured for working with the Bitbucket repositories.

Creating and Cloning Repository

After you configure SourceTree, you can now create a repository and clone it on the local system. 

To create and clone repository:

  1. Launch SourceTree.
  2. Click Create.
  3. In the Destination Path, select a folder path where you would like to save and work on your local repository.
  4. Enter the prefered repository name.
  5. Select GIT.
  6. Select the Create Repository on Account option.
    In the Repository Settings, Bitbucket account details appear that are added while configuring SourceTree. 
  7. Add description, if required.
  8. Select Is Private option to mark this repository as a private repository. 
    Image Removed
  9. After the repository is created and cloned, add a sample text file into the repository and commit it.
  10. To commit sample file, 
    1. Navigate into the folder where you have cloned the repository on the local system.
    2. Create a new sample.txt file with sample text in it.
    3. From SourceTree, stage the file and add comment, if required.
    4. Select Push changes immediately option and click Commit.

Adding Existing Qualitia Projects to Bitbucket Repository

After you clone the repository, you can now add your existing Qualitia projects to the Bitbucket repository.

Info

This is a one-time activity for each of the existing Qualitia project. Once the project is added to the repository, all the changes made to the repository are automatically updated by Qualitia. 

To add existing projects to Bitbucket repository:

...

  1. Click Branch > New Branch.
  2. Enter New Branch name.
  3. Ensure that Checkout New Branch option is selected.
  4. Click Create Branch.
    Image Removed

...

    1. .