可以通过以下步骤解决该问题:
mkdir my-first-repo
cd my-first-repo
git init
echo "Hello, world!" > hello.txt
git add hello.txt
git commit -m "Initial commit"
cp -R my-first-repo my-second-repo
cd my-second-repo
git bundle create my-bundle.bundle HEAD~1..HEAD
cp my-bundle.bundle ../my-third-repo/
cd ../my-third-repo/
git bundle unbundle my-bundle.bundle
du -hs my-first-repo/.git
du -hs my-third-repo/.git