git clone –bare https://github.com/%5BPUBLIC%5D.git –recursive
cd [PUBLIC].git/
git push –mirror https://github.com/%5BPRIVATE%5D.git
git remote -v
rm -rf [PUBLIC].git/
git clone https://github.com/%5BPRIVATE%5D.git –recursive
git remote -v
git remote add public https://github.com/%5BPUBLIC%5D.git
[Git] Fork a public repo to private
Leave a reply