The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
-
Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)
git clone --bare [email protected]:usi-systems/easytrace.git
-
Create a new private repository on Github and name it
easytrace.If you are unable to create a private repo, you can request unlimited private repos as a studant by getting the student pack from Github.
-
Mirror-push your bare clone to your new
easytracerepository.Replace
<your_username>with your actual Github username in the url below.cd easytrace.git git push --mirror [email protected]:<your_username>/easytrace.git
-
Remove the temporary local repository you created in step 1.
cd .. rm -rf easytrace.git -
You can now clone your
easytracerepository on your machine (in my case in thecodefolder).cd ~/code git clone [email protected]:<your_username>/easytrace.git
-
To pull new updates from the public repo.
cd private-repo git remote add public [email protected]:usi-systems/easytrace.git git pull public master # Creates a merge commit git push origin master
Awesome, your private repo now has the latest code from the public repo plus your changes.