git push 反斜杠错误’\’报错:bad line length character

$ git push github master
fatal: filename in tree entry contains backslash: 'D:\Game_Log.txt'
error: remote unpack failed: eof before pack header was fully read
error: failed to push some refs to '[email protected]:pet**/***.git'


解决办法:

  • 升级git版本到2.25或者降到2.23都可解决此问题
  • 禁用core.protectNTFS : git config --global core.protectNTFS false
发布了85 篇原创文章 · 获赞 30 · 访问量 27万+

猜你喜欢

转载自blog.csdn.net/qq_42672770/article/details/104413954