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仓库克隆为私有仓库,并通过使用git clone和git push命令将内容从公共仓库安全地迁移到私有仓库。此过程包括创建裸克隆、推送至私有仓库及清理裸克隆文件。
转自这里
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"
3553
1557

被折叠的 条评论
为什么被折叠?