我正在开发一个网站,并希望在github上备份它。我采取了以下步骤:
git init
创建了一个.git目录git remote add origin https://github.com/username/repo.git
git add *
试图提交,它说
# On branch master nothing to commit (working directory clean)
试图通过git push -f origin branchname
将所有内容推送到远程git。我收到以下错误:
Counting objects: 3644, done.
Delta compression using up to 32 threads.
fatal: Out of memory, calloc failed)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
fatal: write error: Bad file descriptor
我甚至通过运行git config http.postBuffer 709427264
来增加帖子缓冲区的大小,但我得到了同样的错误。
我做错了什么,如何解决?