On the server (site@site)
> git init --bare
Back on my client
> git remote add origin site@site:/home/git/repos/repo_name/
> git push origin master
Counting objects: 43, done.
Delta compression using up to 2 threads.
fatal: git upload-pack: protocol error, expected to get sha, not '0000000000000000000000000000000000000000 f9b6ddffc38fe0cfcd0ab311197bb31d1fab4856 refs/heads/master'
Compressing objects: 100% (42/42), done.
error: pack-objects died of signal 13
error: failed to push some refs to 'site@site:/home/git/repos/repo_name/'
Not sure what’s causing this error on initial repo push. I tried creating a simple repository with just a text file, and that worked. I suspect perhaps there’s a file causing the error but am not sure how to trace down which file it is (apart from removing everything from the repo and adding them back in one at a time).
pushing a new repo on an empty repo usually requires -u