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.