简体   繁体   English

恢复旧版本的 gitbook

[英]Revert a older version of a gitbook

How do you revert to an older merge of a gitbook version.你如何恢复到 gitbook 版本的旧合并。 I had accidentally merged a wrong and I need to change it back urgently.我不小心合并了一个错误,我需要紧急改回来。

您可以回滚合并的更改阅读此

GitHub Docs has pretty useless documentation for this process, despite it seeming to be a regular issue.尽管这似乎是一个常规问题,但 GitHub Docs 对此过程的文档非常无用。

First, you must be an Administrator in your GitBook workspace to have access to the Rollback function.首先,您必须是 GitBook 工作区的管理员才能访问回滚功能。

When you open your GitBook, you will see the History tab in the upper right.当你打开 GitBook 时,你会在右上角看到History选项卡。 Go to this tab, then select Change History , then Space to view all of the merged change requests that have occurred in your GitBook workspace.转到此选项卡,然后选择Change History ,然后选择Space以查看在 GitBook 工作区中发生的所有合并更改请求。

Scroll to the merged change request that you want to restore your GitBook's state to, and click the three dots to the right of the change request name.滚动到要将 GitBook 的状态恢复到的合并更改请求,然后单击更改请求名称右侧的三个点 You will then be presented with the Rollback function.然后您将看到回滚功能。

! DO NOT just click the change request, this will send you out into your main workspace to view the old change request.不要只单击更改请求,这会将您发送到主工作区以查看旧的更改请求。 This is actually a pretty good way to verify that this is in fact the one you wanted before rolling back the workspace.这实际上是一种很好的方法来验证这实际上是您在回滚工作区之前想要的那个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM