This version of GitHub Enterprise Server will be discontinued on 2026-08-25. Discontinued releases are not supported. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features in GitHub Enterprise Server, see Overview of the upgrade process. For help with the upgrade, GitHub Enterprise Support.
Work with forks
Fork repositories, sync changes, and manage pull request branches effectively using forks.
Fork a repository
Fork a repository on GitHub to propose changes, collaborate on projects, and manage your own copy of the codebase.
Configuring a remote repository for a fork
Set up a remote pointing to the upstream repository in Git to sync changes between your fork and the original repository.
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.
Detaching a fork
Disconnect a repository from its fork network by leaving the network or creating a standalone repository through manual steps.