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

从复刻创建拉取请求

You can create a pull request to propose changes you've made to a fork of an upstream repository.

Anyone with write access to a repository can create a pull request from user-owned fork.

You can also give the upstream repository's maintainers permission to push commits to a user-owned fork. 如果您的拉取请求将上游仓库中的分支作为与主题分支进行比较的基本分支,则您的主题分支也称为该拉取请求的比较分支 。 For more information about pull request branches, including examples, see "Creating a pull request."

  1. Navigate to the original repository where you created your fork.

  2. 对于 Branch(分支)菜单右侧,单击 New pull request(新拉取请求)

    拉取请求按钮

  3. 在 Compare(比较)页面上,单击 compare across forks(跨复刻比较)

    跨复刻比较链接

  4. In the "base branch" drop-down menu, select the branch of the upstream repository you'd like to merge changes into.

    选择基本复刻和分支的下拉菜单

  5. In the "head fork" drop-down menu, select your fork, then use the "compare branch" drop-down menu to select the branch you made your changes in.

    Drop-down menus for choosing the head fork and compare branch

  6. 为您的拉取请求输标题和说明。

    拉取请求标题和描述字段

  7. On user-owned forks, if you do not want to allow anyone with push access to the upstream repository to make changes to your pull request, unselect Allow edits from maintainers.

    allow-maintainers-to-make-edits-checkbox

  8. 要创建可供审查的拉取请求,请单击 Create Pull Request(创建拉取请求)。 要创建草稿拉取请求,请使用下拉列表选择 Create Draft Pull Request(创建草稿拉取请求),然后单击 Draft Pull Request(草稿拉取请求)。 有关拉取请求草稿的更多信息,请参阅“关于拉取请求”。

    创建拉取请求按钮

提示:在创建拉取请求后,您可以要求特定的个人审查您提议的更改。 更多信息请参阅“申请拉取请求审查”。

延伸阅读

问问别人

找不到要找的内容?

联系我们