Skip to main content

使用分叉

使用分叉时,分叉存储库、同步更改和管理拉取请求。

为存储库创建分支

创建存储库分支 GitHub ,以便提出更改、协作处理项目以及管理自己的代码库副本。

为分支配置远程存储库

设置一个指向 Git 中的上游存储库的远程项,以同步分叉和原始存储库之间的更改。

Syncing a fork

Sync a forked repository with its upstream repository using the web interface, GitHub CLI, or command line.

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.

分离分支

通过离开网络或通过手动步骤创建独立存储库,断开存储库与其分支网络的连接。