WowBow WowBow - 4 days ago 6
Git Question

How do you fork your own project on github?

I have a public repo on Github. I want to replicate/copy it and work on a new project based on the current repo. But I dont want to affect the current repo. I tried to Fork it using the GitHub's web UI but, it didn't do anything.

I appreciate your help.

Answer

I don't think you can fork your own repo.
Clone it and push it to a new repo is good but you need to:

git clone https://github.com/userName/Repo New_Repo
cd New_Repo
git remote set-url origin https://github.com/userName/New_Repo
git remote add upstream https://github.com/userName/Repo
git push origin master
git push --all

(see git push)

See the all process described at "Fork your own project on GitHub".

Comments