- Create a patch:
git format-patch -n HEAD^- Apply the patch:
git am 0001-Add-README.md.patch- Create a Git bundle:
git bundle create file.bundle master- Clone from the Git bundle:
git clone -b master file.bundle hello-git- Create a Git bundle for changes 10 days ago:
git bundle create file.bundle --since=10.days master- Pull the changes from the Git bundle:
git pull