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

21,017

Solution 1

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 2

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 3

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.

Share:
21,017
Rhys
Author by

Rhys

Words describing me in third person.

Updated on October 24, 2021

Comments

  • Rhys
    Rhys over 2 years

    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

  • Rhys
    Rhys almost 13 years
    @Korakter that seems to be the problem: the original project is personal, the fork is organizational. The third one should be organizational...
  • KingCrunch
    KingCrunch almost 13 years
    Don't see a problem: As long as the second and third repo goes into different organizations, it works.
  • Rhys
    Rhys almost 13 years
    That still is the problem though; I'd rather not create another organization account for this, since it is technically still the same organization, and these are paid accounts.
  • Tekkub
    Tekkub almost 13 years
    You should use branches then, not forks.
  • XP1
    XP1 over 12 years
    @Koraktor: "unable to create two repositories with the same name (and forks always have the same name)." Couldn't you rename the repository in Admin > Settings > Repository Name?
  • Vineet
    Vineet over 12 years
    "forks always have the same name" - so this should work if you rename the first fork. But renaming (as suggested by @XP1) does not seem to be enough to create a new fork.
  • WestCoastProjects
    WestCoastProjects over 8 years
    We have a solid scenario where this feature is required. In 2015: Is Github still insistent on not supporting this use case?
  • iFreilicht
    iFreilicht almost 8 years
    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. Here's an example: github.com/tmk/tmk_keyboard/network/members
  • axkibe
    axkibe about 7 years
    This is not a correct answer, since the person doesn't want to delete his original repository someone made a fork of, he/she now wants again to fork with their modifications.
  • Andrew
    Andrew over 6 years
    They ought to support having both a fork of the original repo and a fork of a fork, simultaneously. They only need to keep track of the parent repo id for it to work.
  • Peter Gloor
    Peter Gloor almost 5 years
    It's still not possible, two years later. I've been running into the same issue, today. In my case the original project is dead, so it's ok to create a clone of the original project that I still need for maintenance. But what if I wanted to contribute to two forks of the same project?
  • Shital Shah
    Shital Shah over 4 years
    Same issue. This is very questionable design at best and doesn't make sense at all.
  • cormacncheese
    cormacncheese over 2 years
    could you elaborate on where to find this?