How to undo a merge on Bitbucket?

后端 未结 4 1656
無奈伤痛
無奈伤痛 2021-01-31 02:24

I\'ve created a merge (into the \'master\' branch) that\'s now on a Bitbucket repo. Long story short: I need to undo that merge.

I know that you can do this at the Gith

4条回答
  •  故里飘歌
    2021-01-31 02:32

    A "Revert pull request" feature was implemented in Bitbucket in 2017.

    To revert a pull request:

    1. From the pull request, click the Revert button in the top right. (Optional) From the Revert pull request dialog, change the Branch name for the new branch you're about to create.
    2. Click the Revert button. Once you click Revert, Bitbucket creates the new branch. Even if you cancel the pull request, the revert branch remains in the repository.
    3. The Create a pull request page opens with the revert branch as the source. After you add your reviewers and make additional changes, click Create.

    Source: the docs.

提交回复
热议问题