我正在进行提交,但发现自己犯了一个错误。由于关闭nano会提交更改,因此我强制关闭了终端。这导致.swp文件留在某个地方,阻止我未来进行提交:
*** Error in `nano': malloc(): memory corruption (fast): 0x000000000204a990 ***
error: nano died of signal 6
error: There was a problem with the editor 'nano'.
Please supply the message using either -m or -F option.
git commit --amend
命令在提交后更新提交信息。 - Philippe