条件:已经在本地git和github上建了仓库,并在本地已经add了github的仓库
下拉出问题:
$ git pull --rebase origin main
fatal: unable to access 'http://github.com/5cu77756465/nand2tetris.git/': OpenSSL SSL_read: Connection was reset, errno 10054
上传出问题
$ git push -u origin main
error: src refspec main does not match any
方法:多pull几次,会成功,我就是这样子,可能是网络或者其他问题。不过只有pull了才能push(这里如果有意见可以指正)。
add:还有一个补充,要push之前你先add文件再commit,这个文件不能是空的文件夹。
(欢迎指正或补充,这只是我的经验之谈)