A fork is a complete copy of a Pen or Project that you can save to your own account and modify. Your forked copy comes with everything the original author wrote, including all of the code and any dependencies.

How to Fork

To fork a Pen or Project, click the Fork button in the footer of the Editor, Details, or Full view of the Pen.

You can create a fork before making changes, or you can start editing first, then fork when you’re ready to save your changes.

A link to the parent is included in the description of a forked Pen or Project (shown in Details View).

A link to your fork will also appear on the “Forks” list on the Details View of the original.

The original tags are also included on your fork. You can change or remove them in your settings.

Hot tip! If you’re forking your own work often, consider making a Pen Template or Project Template instead.

Forks in “Your Work”

The “All” view of your Pens and Projects in Your Work includes forks. But, you can choose to exclude them, or you can choose to show only your forked Pens.

To exclude forks, select “All My Pens (No Forks)” or “All My Projects (No Forks”) from the “View” menu. To see only forks select “Fork” from the view menu.

Forks on Your Profile

We separate your forks from your original Pens and Projects on your profile pages so visitors to your profile will see your work first.

On your profile, forked Pens are categorized under Pens > Forked. Forked Projects are categorized under Projects > Forked.

What happens when a fork is forked?

When a new fork is created from a Pen or Project that is a fork, the new fork is considered a child of the original. So for example, if you create Pen A, and another member forks your Pen to create Pen B, then a third member forks Pen B to create Pen C, Pen C is a child of your Pen A, and will appear on the list of forks from Pen A.

Other fork differences

  • Forks aren’t shown in search by default, but you can expand your search to include forks by setting “Show forks” to “True” on the search result page.
  • Forks aren’t shown in Recent Pens or Recent Projects.
  • We avoid picking forks, unless they are significantly different from the original.
Was this article helpful?