假设旧的仓库地址为 https://github.com/vitejs/vite.git
,需要迁移至 https://github.com/my/vite.git
,保留所有提交记录。
第一步:
git clone --bare https://github.com/vitejs/vite.git
第二步:
cd vite.git
第三步:
git push --mirror https://github.com/my/vite.git
假设旧的仓库地址为 https://github.com/vitejs/vite.git
,需要迁移至 https://github.com/my/vite.git
,保留所有提交记录。
第一步:
git clone --bare https://github.com/vitejs/vite.git
第二步:
cd vite.git
第三步:
git push --mirror https://github.com/my/vite.git