Skip to content
  • There are no suggestions because the search field is empty.

Reset a Local Branch

We can reset a Branch to move the current branch’s pointer to a specific commit, effectively rewriting the project’s history.

This allows us to remove or modify recent commits, making it appear as if specific changes were never made or were altered before being integrated into the main branch.

This is especially useful for cleaning up a branch’s commit history before merging or sharing it with others.

Or to cancel the last changes we made in the modeling.

Reset a Local Branch

To reset a Local Branch to the Main Branch, access the Branch overview page of a Project:

Click on the Context menu for an activated Local Branch and choose the Reset option:

The Local Branch needs to be activated first. See Activate a Branch.

The reset process will begin, and a pop-up window will open:

All the changes/commits that occur since the feature Branch creation are displayed.

In this example, we can observe 3 changes:

  1. We updated the Model Object CreditCardUpdated
  2. We removed a Term Mapping for the Term AccountNumber
  3. We Added a Term Mapping for the Term CustomerID

Depending on the changes we want to reset, we can click on the Reset button for a change/commit:

This will reset all the changes/commits done after the change/commit where we click on the Reset button.

For example, here, if we reset for the change/commit 1, the changes 2 and 3 will be reset.

So the change/commit 1 will be kept.

If we try to reset a new time after the first reset, we can observe only the change 1 appearing:

If a Git error occurs while resetting the branch, click Show Details in the error pop-up to view the technical logs for troubleshooting.

Demonstration video