今天用tortoisegit同步新的文件到github上的时候出现了git did not exit cleanly的报错,分析原因可能是网络出现问题或者是因为当时文件还处于打开状态就上传了。
对此,我的解决方案是右键要上传的文件夹,选择TortoiseGit>Delete and add to ignore list>Delete and ignore 2 items by extension,然后重新上传就可以了。
git did not exit cleanly(exit code 128)报错的部分原因及解决方法

此外要注意,如果误选了TortoiseGit>Delete,push的时候也会报错,我的做法是把文件从回收站里复原后,再以上面的方法重新删除,如果试出其他方法再来更新。

相关文章:

  • 2021-04-18
  • 2021-05-19
  • 2021-07-21
  • 2021-11-16
  • 2021-04-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
  • 2021-12-11
  • 2022-12-23
  • 2021-07-03
  • 2021-09-26
相关资源
相似解决方案