Getting Changes

Applies to TestComplete 15.47, last modified on January 20, 2023

When working with a remote repository, you would most likely want to obtain changes made by other people. You can perform this directly from TestComplete.

There are two actions to retrieve changes in Git: fetch and pull. Fetch gets changes from the remote branch and does not merge them with any local branch. You may inspect these changes and merge them manually if needed. Pull gets changes from the remote branch and merges them with the local branch which was set up to track a remote branch (typically, a local/master branch tracks a remote/master one).

Fetching Changes

To fetch changes from the remote repository:

  1. Open the Fetch dialog. You can do one of the following to display it:

    • Select File > Source Control > Fetch from the TestComplete main menu.
    • Right-click within the Project Explorer and choose Source Control > Fetch from the context menu.
    • Click Fetch on the Source Control toolbar (if the toolbar is hidden, right-click the main menu and select Source Control in the ensuing context menu to show the toolbar).
  2. In the dialog, select the remote repository and the branch(es) from which you want to get the changes.

    Getting changes via the TestComplete Fetch dialog

    Fetch Dialog (Git Plugin)

    Click the image to enlarge it.

    Getting changes via TortoiseGit Fetch dialog

    TortoiseGit Fetch Dialog

    Click the image to enlarge it.

  3. Specify other options for the fetch operation (if needed) and press OK.

Pulling Changes

To pull changes from the remote repository:

  1. Open the Pull dialog. You can do one of the following to display it:

    • Select File > Source Control > Pull from the TestComplete main menu.
    • Right-click within the Project Explorer and choose Source Control > Pull from the context menu.
    • Click Pull on the Source Control toolbar (if the toolbar is hidden, right-click the main menu and select Source Control in the ensuing context menu to show the toolbar).
  2. In the dialog, select the remote repository and the branch(es) from which you want to get changes.

    Getting changes via the TestComplete Pull dialog

    Pull Dialog (Git Plugin)

    Click the image to enlarge it.

    Getting changes via TortoiseGit Pull dialog

    TortoiseGit Pull Dialog

    Click the image to enlarge it.

  3. Specify other options for the pull operation (if needed) and press OK.

  4. TestComplete will notify you that project files were modified and suggest reloading them. Select Yes to All to reload all project files.

Related Tasks

See Also

Integration With Git - Common Tasks
Integration With Git

Highlight search results