Skip to main content

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.