Make a private fork of a public git repository
转自这里
git clone --bare "$public_repo"
cd "${public_name}.git"
git push --mirror "$private_repo"
cd ..
# Safe to remove the bare clone.
rm -rf "${public_name}.git"
转自这里
git clone --bare "$public_repo"
cd "${public_name}.git"
git push --mirror "$private_repo"
cd ..
# Safe to remove the bare clone.
rm -rf "${public_name}.git"