Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 975
Aron Rotteveel Avatar asked Jul 13 '11 08:07

Aron Rotteveel


People also ask

Is forking legal in GitHub?

The TOS states you agree to allow viewing and forking. It doesn't state that you agree to allow redistribution or use. If the terms don't explicitly state that you allow those things, then unless your license allows them they aren't allowed.

How do I fork a GitHub repository in GitHub?

To follow along, browse to a public repository that you want to fork. At the top right of the page, you will find the Fork button. Click on the button and wait for a few seconds. You will see that the newly forked repository gets created under your GitHub account.

Can I fork a branch in GitHub?

In github (and in git's mental framework) you clone and fork repositories. There's no way to fork a branch; that doesn't make sense. Just fork the project, and work off the branch you're interested in. You don't lose anything by doing so.


2 Answers

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.

like image 111
3 revs, 2 users 87% Avatar answered Sep 22 '22 20:09

3 revs, 2 users 87%


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.

like image 39
Aron Rotteveel Avatar answered Sep 22 '22 20:09

Aron Rotteveel