Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I fork another persons repo twice into my own account?

Tags:

On GitHub, I can't seem to figure out how I can fork a repo twice into one account.

So there is a repo from Bob/CoolFramework

I fork it to Jeremy/MyShooter and start to build a game

Now I also want to fork it to Jeremy/MyRPG to build another new game

When I try to fork CoolFramework a second time, it just takes me to MyShooter.

So the options I can think of: A) I'm not using Git in the right way B) It's not possible on Git C) I just couldn't see the option on Github

like image 595
Jeremy Avatar asked Oct 09 '13 18:10

Jeremy


People also ask

How do I fork someone else's repossession?

Go to the repository on github. (Say it's by myfriend , and is called the_repo , then you'll find it at https://github.com/myfriend/the_repo .) Click the “Fork” button at the top right. You'll now have your own copy of that repository in your github account.

Can you fork a cloned repo?

Forking allows you to modify a remote repo, without affecting the original version. After cloning your fork to your local computer, you can meke changes to your copy, which you can then submit to the original repo as a Pull request.

How can I find out who forked my repossession?

Clicking the number of forks shows you the full network. From there you can click "members" to see who forked the repo. Example for ExpressJS: https://github.com/expressjs/express/network/members.


2 Answers

In your case, I would suggest going with submodules. However to answer your exact question, here's how you should proceed.

  1. Start by creating Jeremy/MyShooter and Jeremy/MyRPG on Github. Keep them empty.

  2. Clone your origin project on your system, twice, giving it different names

    $ git clone http://github.com/Bob/CoolFramework MyShooter $ git clone http://github.com/Bob/CoolFramework MyRPG 
  3. You now have 2 different local repos pointing to the same origin. You should remove the origin and point to yours as a remote:

    $ cd MyShooter $ git remote remove origin $ git remote add origin http://github.com/Jeremy/MyShooter.git $ git push -u origin master 
  4. Don't forget to do the same for MyRPG

like image 133
rahmu Avatar answered Sep 17 '22 03:09

rahmu


From the sound of things, you are using a framework within a game you are creating. If you are just using the framework and not changing it, create a new project for your game and include the framework project within it as a sub-module.

Assuming you are not modifying the framework, you should not be forking it. Forking a project is for modifying (often with the intent of submitting your fork to be merged back into the source project).

like image 31
bengoesboom Avatar answered Sep 17 '22 03:09

bengoesboom