Skip to content

Commit fa8c440

Browse files
committed
Updated text
1 parent 044a1e1 commit fa8c440

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • content/en/docs/refguide/version-control/using-version-control-in-studio-pro

content/en/docs/refguide/version-control/using-version-control-in-studio-pro/_index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,10 @@ Changes that have been committed and pushed to the server can never be deleted f
224224
Choose the **Version Control** menu > **Revert a Commit...** to revert a commit. This will create the original changes 'in reverse', which you can commit and push to the server.
225225

226226
{{% alert color="warning" %}}
227-
Reverting a commit creates a new set of changes to cancel out the changes from the commit. If you used Port Fix to put a commit from another branch on the current branch, and you revert that commit, the changes will not be applied again when eventually merging the entire branch.
227+
Reverting a commit creates a new commit that undoes the changes introduced by the original commit. This may lead to unexpected results depending on the context of the original commit.
228+
229+
* **Port fix and reverting:** If you used [Port Fix](/refguide/merge-dialog/#port-fix) to apply a commit from another branch to the current branch, and then you revert that commit, the changes from the cherry-pick will not be applied again if you later merge the entire branch. This is because the revert commit explicitly undoes the changes from the cherry-picked commit, and Git recognizes that these changes have already been handled.
230+
* **Merging and reverting:** If you [Merged another branch](/refguide/version-control/#merging-branches) into the current branch and then reverted the merge commit, the changes from the merge will not be reapplied if you merge the branch again. This is because the revert commit undoes the changes introduced by the merge commit, and Git recognizes that the changes have already been integrated and reverted.
228231
{{% /alert %}}
229232

230233
Reverting changes is done with one commit at a time. If you want to revert multiple commits, you can do that by reverting the latest commit, then the previous one, only one by one.

0 commit comments

Comments
 (0)