I would like to use my USB stick for transferring branches to and from work/home computers (due to network restrictions).
However, when I push to the usb (FAT32) from my desktop (NTFS), I get various errors (error: packfile, fatal: bad object, etc.). The usb git repo was initialised with the “bare” option.
I am assuming that this has something to do with filesystems because that’s what my web searches have suggested. I also tried to pull/push to a different location on my desktop, and that does not throw any errors.
Does anyone know how I can get round this problem?
Thanks.
You could:
(you can even try to push directly to a bundle on your USB key)
The idea is to sidestep completely the issue of a different file system by pushing / pull to/from a unique file easy to copy around.
For mobility/backup purpose, I always have preferred the bundle solution anyway, as in the question “How two laptops can git push/pull to each other with no internet“.