Skip to content

Instantly share code, notes, and snippets.

@tuttelikz
Created April 29, 2018 04:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuttelikz/aa22854c2613ae96e908eb55608baf34 to your computer and use it in GitHub Desktop.
Save tuttelikz/aa22854c2613ae96e908eb55608baf34 to your computer and use it in GitHub Desktop.
This is a gist demonstrating how you can create a duplicate of a project
In your case, I would suggest going with [submodules](https://stackoverflow.com/a/19279658/403401). 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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment