Commit Changes to Git Repository

Applies to ReadyAPI 3.52, last modified on April 25, 2024

To commit your changes to a Git repository, do the following:

  1. Save your project and click Git on the main toolbar.

  2. In the Uncommitted changes field, you will see changes that your project has compared to the local repository.

    Tip: Click an item to see what changes have been made.
  3. In the Commit message field, enter the commit message or leave the default one.

  4. Click Commit.

    Git integration in ReadyAPI: Commit changes in Git panel

    Click the image to enlarge it.

Important notes:

  • You must save your project for the changes to appear in the panel.

  • You cannot choose which changes to commit in the Git panel. If you want to commit specific changes and leave other ones uncommitted, commit via the project menu.

  • To learn about the project structure and the items that appear in the dialog, see Composite Project Structure.

  • Whenever you save a project, the corresponding project files gets updated. If and when you connect to Git, Git will detect that change and ask you to commit and push it.

  • You can configure to delete the Commit message once you have committed your changes in the ReadyAPI Git Preferences panel.

To commit your changes to a Git repository using the project menu, follow these steps:

  1. Right-click the project in the Navigator panel and select Git > Commit from the context menu.

    Show image

    — or —

    Select Project > Git > Commit from the main menu.

    Show image

    This action will automatically save the project.

    Note: If the command is disabled, make sure you enabled integration with Git.

  2. The Git Commit dialog will appear:

    Git integration: Git Commit Dialog

    Click the image to enlarge it.

    The dialog lists the changed files. To learn what each file is used for, see Composite Project Structure.

    In the dialog:

    • Select the changes to commit.

      Tip:

      To view the difference between file versions, click the View option in the Details column. This will open a window where you can see the difference:

      Diff viewer window

      Click the image to enlarge it.

    • Enter a commit message.

    • Click Commit.

After you commit the changes to a local Git repository, you may want to push the changes to a remote repository.

See Also

Git Integration
Teamwork

Highlight search results