Tried following the steps mentioned in http://alt.adrianshort.co.uk/blog/2011/11/08/create-multiple-forks-of-a-github-repo/ but it didn’t work for me for some reason. Documenting this for personal purposes.
Was working on a new machine, so had to:
git config –global user.name “Username”
git config –global user.email “youremail@yourdomain”
git config –global credential.helper cache
git remote add origin https://github.com/Username/YourRepo.git
ssh-keygen -t rsa -C “youremail@yourdomain”
Push code from local machine to Github
The following didn’t work for me – git requested username/password. I gave it the correct values but it threw an authentication error –> git push -u origin master
git push email@example.com:Username/YourRepo.git master –force
Edit: The only downsides to this are:
1. the second fork is not identified as a fork of the original repository, and
2. you cannot name the second repository with the same name on Github. This could be a problem if your CMAKE compile files rely on a specific repository name.