Is it possible to 'fork a fork' in Github?

GitGithubVersion ControlBranch

Git Problem Overview


I am currently working on a project that is a spinoff (fork) from a framework I have been working on.

This project is intended to be pretty generic, but now I need to fork the codebase again for a client of mine.

At this moment, I have created a custom branch for my client, but I'd rather have a standalone repository for this.

  • Is is possible to 'fork a fork'?
  • If not, what alternatives do I have?

Outline of the situation:

  • Framework repository (original)
  • Generic application repository (fork)
    • (not yet) Client repository (fork of application)

Note: when trying to 'fork a fork' in Github, you will receive a notification that you have already forked the project:

Image showing a forked project cannot be forked again

Git Solutions


Solution 1 - Git

> This is now very possible. You just go to the fork you want to fork > and click "fork" like you would always do. This only works if you > don't have a different fork of that repository in your account > already, though. If you do, you have to delete it.

Answered in a comment by iFreilicht

Since this is the correct answer now, it is better to highlight it.

Solution 2 - Git

I contacted GitHub support about this 'issue' and they confirmed this is not possible. Also, it is very unlikely that such a feature will be implemented in the future.

Solution 3 - Git

Simple answer: Yes and no.

No, for a single account as you are unable to create two repositories with the same name (and forks always have the same name).

Yes, for multiple accounts. So you could setup an organization for your second fork.

Solution 4 - Git

now,there is a drop-down arrow, you can chose base repository drop-down arrow

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAron RotteveelView Question on Stackoverflow
Solution 1 - GitJigarView Answer on Stackoverflow
Solution 2 - GitAron RotteveelView Answer on Stackoverflow
Solution 3 - GitKoraktorView Answer on Stackoverflow
Solution 4 - Gituser2352151View Answer on Stackoverflow