我写git Push的时候git意外关闭了

问题描述 投票:0回答:1

我有一个名为 NeuralNetwork-numpy 的文件夹。

我写的命令:

NeuralNetwork-numpy> git add .
warning: in the working copy of 'data/fashion-mnist_train.csv', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'stracth-NN.ipynb', LF will be replaced by CRLF the next time Git touches it

NeuralNetwork-numpy> git commit -m "files added"
[githubtuna 52b7571] files added
 7 files changed, 70339 insertions(+)
 create mode 100644 data/fashion-mnist_test.csv
 create mode 100644 data/fashion-mnist_train.csv
 create mode 100644 data/t10k-images-idx3-ubyte
 create mode 100644 data/t10k-labels-idx1-ubyte
 create mode 100644 data/train-images-idx3-ubyte
 create mode 100644 data/train-labels-idx1-ubyte
 create mode 100644 stracth-NN.ipynb

NeuralNetwork-numpy> git push
Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 4 threads
Compressing objects: 100% (10/10), done.
error: RPC failed; HTTP 400 curl 92 HTTP/2 stream 7 was not closed cleanly: CANCEL (err 8)
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (10/10), 67.23 MiB | 2.91 MiB/s, done.
Total 10 (delta 0), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date

我尝试删除文件夹并使用此命令重新创建:

git clone https://github.com/vahsi-bozkirli/NeuralNetwork-numpy.git

但什么都没有改变

git github fatal-error
1个回答
0
投票

我不知道您尝试推送的文件有多大,但是浏览互联网我可以看到,如果您尝试推送大型对象,可能会发生

fatal: the remote end hung up unexpectedly
。正如我已阅读here,发送此命令应该足够了:

git config http.postBuffer 524288000
© www.soinside.com 2019 - 2024. All rights reserved.