Skip to content

bundle ​

有的开发空间连接不上远程仓库,通过文件转移代码仓库。

打包仓库为二进制文件,包含历史提交。

cd test

git bundle create ../test.bundle --all

克隆为新仓库。

cd ..

git clone test.bundle test-new

不支持推送,会报错。

error: failed to push some refs to 'test.bundle'

天下大吉