GitHub: make fork an "own project"

GitGithub

Git Problem Overview


I have found a nice GitHub project which I extended a lot. I believe my changes are good, because they are working. But it seems the original author hasn't got the time to review these changes and include them. In fact, it is even possible that the features I need and implemented are not in the vision of the original author and we simply aim at different goals. I don't know as I never got responses from him.

That said I saw my contributions are not counted in my commit-map. This is the case as long as the original repository doesn't accept my contributions. Furthermore my work is only recognized as work and doesn't attract any other people with the same vision as I have. This is the bigger problem for me, because I see a lot of people asking for these features.

I am still offering my contributions to the original project, but I see it is unlikely they are ever accepted. Now I would like to make my fork a "real project". While I plan to sync with the original project at some points of time, I want to rename it and motivate people to contribute to my project as well. In addition, I would love if GitHub would show that this project is actively maintained (speaking of the commit map). And finally, I would love to make proper releases of it.

How can I get this done and well, make my fork a full-fledged project?

Git Solutions


Solution 1 - Git

Solution 2 - Git

In order to do this you need to duplicate the repository. The short version is:

  1. Create a new repository on GitHub.
  2. Clone the forked repository you want to detach from its parent.
  3. Push all branches in this clone to your new repository.

Solution 3 - Git

This is super easy:

  1. Clone the repo somewhere: git clone [email protected]:USERNAME/REPOSITORY.git (make double sure you have it cloned)
  2. Delete the repo in GitHub (Settings > Options > Delete this repository)
  3. Create a new blank repo in GitHub
  4. git remote set-url origin [email protected]:USERNAME/NEW_REPOSITORY.git (if you used the same name for the repo, then NEW_REPOSITORY == REPOSITORY )
  5. git push
  6. 

(I use ssh, but if you use https your github urls will look like https://github.com/USERNAME/REPOSITORY.git)

Solution 4 - Git

  1. Go to Github Support

  2. Enter "detach a fork" as the subject. A prompt for the virtual assistant will appear — click that.

enter image description here

  1. Follow the instructions!

enter image description here

Result

enter image description here

Solution 5 - Git

First you should check if the licence is allowing you to do so, generally speaking Open Source enforces you to do so because it is all about software evolution whithout chains. If so then just create an new repo. Don't forget to credit the original authors and start your project.

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
QuestionChristianView Question on Stackoverflow
Solution 1 - GitOleh PrypinView Answer on Stackoverflow
Solution 2 - GitcdhowieView Answer on Stackoverflow
Solution 3 - GitGerbusView Answer on Stackoverflow
Solution 4 - GitmicycleView Answer on Stackoverflow
Solution 5 - GitjethrooView Answer on Stackoverflow