Skip to main content

此版本的 GitHub Enterprise Server 将于以下日期停止服务 2026-08-25. 已停止发布的版本不受支持。 即使针对重大安全问题,也不会发布补丁。 若要获得更好的性能、改进的安全性和 GitHub Enterprise Server 中的新功能,请参阅升级过程的 Overview。 如需升级帮助,请联系 GitHub Enterprise 支持。

拉取请求文档

了解如何创建、审查和合并拉取请求、解决合并冲突,以及在 GitHub 项目中高效协作。

概述

文章

Work with forks

Allowing changes to a pull request branch created from a fork

Enable collaboration by allowing repository maintainers to commit changes to pull request branches created from forks in your personal account.
Create pull requests

Branches

Use branches in GitHub to isolate development work, manage default branches, and collaborate effectively using pull requests and branch protections.
Create pull requests

Changing the base branch of a pull request

Modify the base branch of an open pull request to compare changes against a different branch and ensure accurate updates.
Create pull requests

Creating a pull request from a fork

Create a pull request from a fork to propose changes to an upstream repository and collaborate on code effectively.
Create pull requests

Managing branches within your repository

Create new branches for development and delete unused branches directly on GitHub.
Merge and close pull requests

Resolving a merge conflict on GitHub

Resolve simple merge conflicts directly on GitHub using the conflict editor or handle complex cases via the command line.
Merge and close pull requests

Resolving a merge conflict using the command line

Resolve merge conflicts using the command line by identifying conflicting changes, editing files, and committing resolutions.
Merge and close pull requests

Status checks

Understand how status checks ensure commits meet repository conditions, assist pull request reviews, and manage validations like builds, tests, and deployments.
Work with forks

Syncing a fork

Sync a forked repository with its upstream repository using the web interface, GitHub CLI, or command line.
显示 53 的 1-9