Created
April 29, 2018 04:01
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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