2

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.

cammil
  • 9,499
  • 15
  • 55
  • 89
  • 2
    may be you should also try different usb stick. I had never encounter problem between NTFS and FAT32 when transferring data. – SIFE Jan 13 '12 at 11:48
  • Seconded. Git doesn't use any special filesystem attributes, it's all contained inside the files. Could you try with a different stick? – Piskvor left the building Jan 13 '12 at 11:52
  • I tried my phone (htc android) and that produced the same errors. It's FAT32 too, but given your comments, I assume that makes no difference? – cammil Jan 13 '12 at 12:01

1 Answers1

3

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".

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250