...
Install SourceTree and Configure CredentialsIn order to start working with your Bitbucket repositories, you must first install and configure sourceTree.
|
...
Launch SourceTree.
Click Create.
In the Destination Path, select a folder path where you would like to save and work on your local repository.
Enter the preferred repository name. Repository name should not contain white spaces.
Select GIT. Qualitia supports GIT repositories only. Support for Mercurial is not yet added.
Select the Create Repository on Account option.
In Repository Settings, Bitbucket account details appear that are added while configuring SourceTree.Add Description, if required.
Select Is Private option to mark this repository as a private repository. Keeping repositories private enables you to control who can access and update data from your repository. This is important to avoid discrepancy in the project data.
After the repository is created, add a sample text file into the repository and commit it.
To commit sample file,
Navigate into the folder where you have created the repository on the local system.
Create a new sample.txt file with sample text in it.
From SourceTree, stage the file and add comment, if required.
Select Push changes immediately option and click Commit.
...
Launch SourceTree.
From the top section, click Clone.
Enter Source Path / URL.
This is the Bitbucket repository URL.
To get the correct URL, go to bitbucket.org > Select Repository Name > from the right-top corner, click Clone.In the Destination path, select a folder path where you would like to save and work on your local repository.
Enter the preferred repository name.
In Checkout Branch, select the Qualitia project you want to start working on.
Click Clone.
After you clone, copy the Bitbucket repository path from the local system and add it as a Project Path (in Configuration Setting > Dependency).
Also, in Qualitia Configuration Setting > General, select Version Control as GIT and add Bitbucket username and password.
Restart Qualitia and start working on the Qualitia Projects integrated with Bitbucket repository.
Getting New Qualitia Projects from Remote Repository
...
Launch SourceTree.
In the Remote section, select the project you want to work on.
Right-click and select Checkout origin/<ProjectName>
This will checkout the project folder (<ProjectName_projectdb>) into your local repository.
You can now start working on the newly checked-out Qualitia project.
Setting Up Environment Using Git Bash
...
Log on to your Bitbucket instance.
Click the + icon and create a new repository.
Enter Repository name.
Repository name should not contain white spaces.Mark this repository as private selecting the Access Level checkbox.
Select Version Control as Git.
In the Advanced Settings, select Language as XML.
Click Create repository.
You can now add Qualitia projects to this repository. Every single Qualitia project will be considered as different branch.
Cloning a Repository
...
Log on to Windows machine where you have installed Qualitia Automation Studio Client.
Navigate to the folder where you want to clone the Bitbucket repository.
Right-click and select the Git Bash Here option.
Enter the following command and press Enter.
Code Block $ git clone <Bitbucket repository URL>
The repository will be cloned to your local system and you can now add Qualitia projects to this repository.
To get the correct URL, go to bitbucket.org > Select Repository Name > from the right-top corner, click Clone.
Initial Commit
...
Navigate into the folder where you have cloned the repository on the local system.
Right-click and select the GIT Bash here option.
Enter the following command to checkout the project branch which you want to work on.
Code Block $ git fetch && git checkout <ProjectName>
This will checkout the project folder (<ProjectName_projectdb>) into your local repository.
You can now start working on the newly checked-out Qualitia project.
Change Management
...