I have GIT repository that I want to backup on another server.
So I've created a clone mirror, set push origin url pointing to the backup GIT server and finally tried to push
$ git clone --mirror <source url>
$ git remote set-url --push origin <dest url>
$ git push --mirror
Getting error
error: remote unpack failed: error The commit object b6bcc7e7dc06ab6f24e5a90384c92b39f68c2324 was rejected: Commit comment contained one or more null bytes
Commit is from 2015 and the message looks good, only printable characters. Don't see any null bytes.
$ git log -n 1 b6bcc7e7dc06ab6f24e5a90384c92b39f68c2324 | xxd
I even tried to reword the message with git rebase -i
, but got too much conflicts and aborted the rebase as would like to avoid force push.
How can I identify the exact issue or how can I skip this commit?