Fork GitHub projects

Last modified: 26 May 2024

If you want to contribute to a project that is hosted on GitHub and that you cannot push to directly, follow this workflow:

  1. Create a fork of the project you want to contribute to.

  2. Clone this fork to create a local repository.

  3. Make changes to your copy of the original project, commit and push them.

  4. When you are ready to share the results of your work, run Sync Fork to rebase your fork on the current HEAD of the main branch in the original project. This is needed to make sure your changes do not conflict with new commits that were pushed after you created your fork.

  5. Create a pull request to suggest your changes to the original project.

  6. Display and apply suggestions locally.