Discarding Changes

To discard unwanted changes you have made to your project, follow these steps:

  1. Click Git on the main toolbar.

  2. Select Discard All Changes.

    Git integration in ReadyAPI: Discard changes in Git panel

Note

  • This action will automatically save the project.

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

Push via the Git project menu

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

    Git integration: Discard Changes command in context menu

    — or —

    Select Project > Git > Discard Changes from the main menu.

    Git integration: Discard Changes Option

    Important

    This action will automatically save the project.

    Note

    If the command is disabled, make sure you enable integration with Git.

  2. The Git Discard dialog will appear:

    Git integration: Git Discard Dialog

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

    In the dialog:

    • Select the changes you want to discard.

    • Click Discard.

ReadyAPI will discard all local changes to specified items.

Note

  • Some changes may affect more than one item at a time.

  • You can discard the changes that have not been committed yet.

Viewing Differences

To compare file versions, click View in the Details column. A window opens, displaying the differences.

Tip

If 3 or more lines are updated, chevron buttons ( and ) allow you to navigate between the changes. An indicator (for example, 2/10) shows your position in the diff view.

RAPI_screenshot_Git_integration_arrow_buttons.png

Identifying Auto Updates

If a file contains only safe-to-commit changes—changes made automatically by ReadyAPI and not by the user— the safe commit changes icon RAPI_screenshot_shield_check.png appears when viewing file differences. Hover over the icon to see the tooltip: ReadyAPI Auto Update: This change was made automatically and is safe to commit.

RAPI_screenshot_Git_integration_safe_changes.png

See Also

Publication date: