我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们

Reverting a commit

You can revert a specific commit to remove its changes from your branch.

When you revert to a previous commit, the revert is also a commit. The original commit also remains in the repository's history.

Tip: When you revert multiple commits, it's best to revert in order from newest to oldest. If you revert commits in a different order, you may see merge conflicts.

  1. 单击 History(历史记录)
    边栏中选择的历史记录选项卡
  2. 右键单击要还原的提交,然后单击 Revert This Commit(还原此提交)
    The Revert option above the diff view
  1. 单击 History(历史记录)
    边栏中选择的历史记录选项卡
  2. 右键单击要还原的提交,然后单击 Revert This Commit(还原此提交)
    The Revert option above the diff view

问问别人

找不到要找的内容?

联系我们