Using git to transfer data via usb stick between Windows and Linux -
i trying use git first time in order transport bachelor thesis writing between windows computer @ work , linux computer @ home. because don't have server use usb stick store shared repository. question understand should possible.
on windows system have created working repository , remote repository on usb stick , pushed working directory usb stick. seems working fine.
on linux system have cloned repository, made changes, added them , committed them. far seems working fine. when try push changes usb stick following error message:
counting objects: 3, done. delta compression using 4 threads. compressing objects: 100% (2/2), done. writing objects: 100% (3/3), 264 bytes | 0 bytes/s, done. total 3 (delta 1), reused 0 (delta 0) remote: error: unable create temporary file: operation not permitted remote: fatal: failed write object error: unpack failed: unpack-objects abnormal exit /media/usb-stick-sta/git/bachelor ! [remote rejected] master -> master (unpacker error) error: failed push refs '/media/usb-stick-sta/git/bachelor'
in /etc/fstab
using following options mount usb stick: noauto,user,uid=1000,gid=1000
own files , have verified case using ls -l
. sure have tried creating file in directory , removing again, works without problems.
one answers stackoverflow question (unfortunately cannot find again) suggested executing chmod -r g+ws *
on remote repository. resulted in many error messages (independent of whether executed owner of files or root):
chmod: changing permissions of ‘config’: operation not permitted
further research yielded files might immutable tried chattr -i *
resulting in messages like:
chattr: inappropriate ioctl device while reading flags on config
reading further found not file systems support these attributes. usb stick formatted fat.
any appreciated. in advance.
if repo isn't big, pack tar or zip file , copy usb stick , unpack on other machine. me wrote genbackup script. creates backup tarfile current date , short hashtag in filename.
if cumbersome, keep track of commits , git format-patch
in repo on 1 computer. copy patch files usb stick, , run git am
on them on other computer.
edit: error, seems me important part;
remote: error: unable create temporary file: operation not permitted
git wants create temporary file, , fails eperm error. looking @ manual page git
, , searching "temporary" gives 1 hit: git-unpack-file
. unfortunately, manual page program not specify where tries create temporary file. after googling seems git
uses tmpdir
environment variable. check if set someplace have access to. if doesn't exist set sensible place , try again.
Comments
Post a Comment