[KShare] Resolving Git Conflicts in Katalon: A Practical

Hi Community members :wave:

Have you ever encountered Git conflicts while working in Katalon Studio and found yourself wondering why they occur and how to resolve them?

Conflicts may occur when two or more people make changes to the same file concurrently. In order to avoid conflicts, the team must collaborate by following several Git practices.

For example, before pushing new source code to the Git remote repository, one must remember to fetch the latest version from Git remote repository, resolve any conflicts, and merge the code with the local version .

Below is a video that demonstrates how two users can make changes to their projects, then commit and push to the same Git repository concurrently without fetching the latest updates:

  • The conflict will appear in the local project of the member who makes the changes after that.
  • The idea to solve it is that you have to pull the code from the Git remote repository, then look for the conflicts and correct them.
  • After resolving the conflict, you are now able to commit and push the change to the Git remote repository.

:information_source: Below are some best practices for managing Git conflicts in Katalon Studio:

  • Commit often: Do not wait until many scripts are created to commit and push to the Git remote repository. The smaller the set of scripts is pushed, the easier you resolve the conflict.
  • Pull: Pull the changes from the Git remote repository before working on new scripts and before committing. Each member works on each feature at a time.

If you find this article helpful, then don’t forget to leave us a like :+1: or a heart :heart: and share it with your colleagues and team members! Your support is greatly appreciated.

5 Likes

Thank you the Product Support team (@support.squad) and Linh Nguyen (@linh.nguyen) on another useful tip when working with Git!

Caryln profile pic
Caryln (@thi.thai) - Product Support Specialist at Katalon
Caryln enjoys offering supporting and assisting our clients with technical issues and questions, as well as sharing her knowledge and experiences with the wider Katalon Community. She is always available to assist users if they have questions or concerns with Katalon products, and she strives to make sure our users have a positive testing experience.
2 Likes

thank you for the practical tips!