In Katalon Studio - Platform Edition, Git integration is always enabled by default. You cannot disable Git integration in Katalon Studio - Platform Edition.
A Git repository URL is required when you open a project in Katalon Studio. See Open a project in Katalon Studio - Platform Edition.
You can view your Git repository URL in Project Information. See Project Information in Katalon Studio - Platform Edition.
This document shows you how to work with Git in Katalon Studio - Platform Edition.
Log in to Git account in Katalon Studio Platform Edition
In case your Git personal access token expires, you can update the new token for using Git integration in Katalon Studio Platform Edition. Do as follows:
- Click on the dropdown of the Profile icon and choose Log in to Git.
- In the Log in to Git dialog, enter your Git Username and Git Personal Access Token.Granting the Write permission for this token is recommended. You can click Save authentication to remember this credentials for the next time opening this project.
- Click Log in.
Set remote connection timeout for Git
- From the main menu, go to Preferences > Katalon > Git.
- Enter the amount of time in second for remote connection timeout.
- Click Apply.
The Commit option allows users to view all current changes and decide which changes are stored in the local branch. For more information on the commit command, refer to this Git document: Commit.
In the main toolbar, click on Git > Commit.
The Git Staging tab is displayed for configuration.
Field Description Unstaged Changes Changes which have been made. Staged Changes Selected changes from Unstaged Changes. These changes are committed.
From the Unstaged Changes list, select the changes to be committed, then right-click on them and select Add To Index. Selected changes are added to the Staged Changes list.
Enter your comments into the Commit Message, then click on Commit to store your staged changes into the local branch.
In the main toolbar, click the Git icon > Manage Branches > New Branch.
The Create Branch dialog displays.
Field Description Source
Select either remote or local branch, which is your source branch.
Branch name The name to be used for the new branch. Checkout new branch Option to let Katalon Studio checkout that branch after created.
Click Finish to create a new branch.
The Checkout Branch option allows you to switch from one branch to another.
In the main toolbar, click the Git icon > Manage Branches > Checkout Branch.
The Select Source dialog displays. Select the local branch you want to check out to be the current branch. The branch with an √ icon is your current local branch.
Click OK to finish checking out to the new local branch.
In the main toolbar, click the Git icon > Manage Branches > Delete Branch.
In this dialog, both local and remote branches are displayed. Select a branch to be deleted, then click OK.
Retrieve all information about changes that have occurred in remote branches. For more information on the fetch command, refer to the Git documentation: Git Fetch.
In the main toolbar, click on Git > Fetch.
Remote branches, tags, and remote changes are fetched automatically.
In the main toolbar, click Show History.
Details regarding all the branches and tags you've just fetched are displayed.
Incorporate changes from a remote repository into the current branch. For more information on the pull command, refer to the Git documentation: Git Pull.
In the main toolbar, click the Git icon > Pull. The Pull dialog appears.
In the Pull dialog, select the remote branch to be pulled into your local branch. Click Finish.
The Pull Result dialog displays all data about pulling requests on the selected branch.
Update the remote branch using the local branch. For more information on the push command, refer to the Git documentation: Git Push.
Before doing any push, you have to commit your changes first.
From the main toolbar, select Git > Push.
The Push to Branch dialog is displayed. Choose from the Remote branch list which branch to be updated (All remote branches in your Git repository are listed here).
Click Next after finishing selecting your remote branch. The Push Confirmation dialog appears.Note:
If you enter a different name besides the listed branches, a new remote branch with that name is created accordingly.
The Push Confirmation dialog displays details regarding your commit.
Click on Finish to push your commits to the remote repository.