I have a local git repository with an existing remote on my harddrive. Now I wanted to move the repository to github and following the documentation I did the following:
git remote set-url origin https://github.com/xxx/xxx.git
git push -u origin master
but I am getting errors.
[user@machine folder]$ git push -u origin master
Username:
Password:
Counting objects: 7398, done.
Delta compression using up to 12 threads.
Compressing objects: 100% (2575/2575), done.
error: RPC failed; result=22, HTTP code = 0iB | 367.95 MiB/s
fatal: The remote end hung up unexpectedly
Writing objects: 100% (7398/7398), 506.65 MiB | 367.95 MiB/s, done.
Total 7398 (delta 5083), reused 6965 (delta 4677)
fatal: The remote end hung up unexpectedly
fatal: expected ok/error, helper said '2004k¡oe>�Xx�FV.�Na�D�͂'
fatal: write error: Broken pipe
Most questions I found on stackoverflow were solved by
git config http.postBuffer 524288000
But it doesn't help me
I also tried git repack
which just made the error come up faster (and a bit less gibberish printed out).
Before git repack
the error looked like this:
[user@machine folder]$ git push -u origin master
Username:
Password:
Counting objects: 7398, done.
Delta compression using up to 12 threads.
Compressing objects: 100% (2771/2771), done.
error: RPC failed; result=22, HTTP code = 0iB | 11.89 MiB/s
fatal: The remote end hung up unexpectedly
Writing objects: 100% (7398/7398), 506.60 MiB | 11.46 MiB/s, done.
Total 7398 (delta 5084), reused 6454 (delta 4481)
fatal: The remote end hung up unexpectedly
*�{�����@���߫��\l�|ʫ%r, helper said '2004�*U��m
��EE$�%��M�l�\�yx�=�O�X.d (Y�gc�Ͷ�Ri�+�ONa���'���F�2X�P������~�,�rݐ����_�,����n0��~8(��v��_�lꉋ�=C�����M�ݓYP���ЖO�e�t-����2X��s�Ϲ۱�<�o|�+�6x1�ob��v>�s��'
I am pretty desperate at this point. Does anyone know how to push a local git repository to github?