When trying to commit a project to github, the commits fails with an error:
fatal: cannot update the ref 'head': unable to append to '.git/logs/head': invalid argument
. This is after properly initialising the directory and having a succesfull first push.
The other solution:
git bundle
: it produces one file (representing the full repository content), see also here.You can store one file in a backup drive.