I have been following the tutorial on the Raspberry Pi website for Getting Started with Git. I created a Git repository on my Raspberry Pi B. I also created a GitHub account. This all went well.
I then tried to upload the repository to GitHub (using HTTP). I did "Create Repository" on GitHub and followed their instructions for setting remote origin and pushing the repository. At first, I had an authentication problem, but I solved this (problem with my Raspberry Pi clock). However, I then got an error saying
Out of memory: malloc failed. Tried to allocate 524288000 bytes.
I didn't think my repository would be that huge. There were a few Python files, none of them very long, and a README.
I'm wondering if the Raspberry Pi B just doesn't have enough memory to push Git repositories, but you'd think the Git tutorial on the Raspberry Pi website would mention if this was the case.
Does anyone know if it's possible to fix this error and push Git repositories to GitHub from the Raspberry Pi?
P.S. While trying to solve the earlier
HTTP request failed, I followed a suggestion to set the postBuffer to 524288000 bytes. It didn't work, and the problem eventually turned out to be to do with the clock, but I'm wondering if the two could be connected since the numbers are the same?