A fork is a complete copy of a Pen that you can save to your own account and modify. Your forked copy of a Pen comes with everything the original author used to create the Pen, including all of the code and any dependencies.
How to fork a Pen
To fork a Pen, click the Fork button in the header of the Editor, Details, or Full view of the Pen.
You can create a fork before making changes, or you can start editing the Pen first, then fork it when you're ready to save your changes.
A link to the parent Pen is included in the "Forks" tab on Details View:
A link to your fork will also appear on the "Forks" tab on the Details view of the original Pen.
The original Pen's tags are also included on your fork. You can change or remove them in your Pen settings.
Pro tip! If you're forking one of your own Pens often to use as a template, consider making it a Template instead.
Forks in Your Dashboard
The "All" view of your Pens in your Dashboard includes forks. But, you can choose to exclude them if you want to focus on your original work.
To exclude forks from your Dashboard view, select "All My Pens (No Forks)" from the "View Filter" menu.
You can also choose to only view your forks. To do that, select "Forks" from the "View Filter" menu.
Forks on Your Profile
We separate your forked Pens from your original Pens on your profile pages so visitors to your profile will see your work first. On your profile, forked Pens are categorized under Pens > Forked.
How to see any Pen's forks
You can see the children of any public Pen on the "Forks" tab of its Details page. If you hover over the to see a preview of what it looks like.
What happens when a fork is forked?
When a new fork is created from a Pen that is a fork, the new fork is considered a child of the original Pen. 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
- We avoid picking forked Pens, unless they are significantly different from the original and include credit to the original.