在VS Code里同步代码时提示一些错误,包括但不限于GnuTLS recv error (-110): The TLS connection was non-properly terminated
,此时应点击show command按钮,查看具体是什么地方出错,具体提示信息如下:
remote: error: File data/SF0.5/lineorder.tbl is 280.62 MB; this exceeds GitHub's file size limit of 100.00 MB
.
但其实我已经把这个文件删除了,也不清楚具体是哪里出问题,使用如下命令:
git filter-branch --tree-filter 'rm -f data/SF0.5/lineorder.tbl' --tag-name-filter cat -- --all
删除文件再git push
就行了。