用命令行进行git提交,出现这个应该怎么弄?

E325: ATTENTION
Found a swap file by the name "E:/myProject/Cloudpathology/.git/.COMMIT_EDITMSG.swp"
          owned by: guanx   dated: Tue Feb 19 16:36:09 2019
         file name: /e/myProject/Cloudpathology/.git/COMMIT_EDITMSG
          modified: YES
         user name: guanx   host name: DESKTOP-RA6MAKD
        process ID: 3732
While opening file "E:/myProject/Cloudpathology/.git/COMMIT_EDITMSG"
             dated: Tue Feb 19 16:37:10 2019
      NEWER than swap file!

(1) Another program may be editing the same file.  If this is the case,
    be careful not to end up with two different instances of the same
    file when making changes.  Quit, or continue with caution.
(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r E:/myProject/Cloudpathology/.git/COMMIT_EDITMSG"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "E:/myProject/Cloudpathology/.git/.COMMIT_EDITMSG.swp"
    to avoid this message.

Swap file "E:/myProject/Cloudpathology/.git/.COMMIT_EDITMSG.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:

用命令行进行git提交,出现这个应该怎么弄?如何退出这个页面?

阅读 6.6k
2 个回答

是这个E:/myProject/Cloudpathology/.git/.COMMIT_EDITMSG.swp" 文件已经存在 建议删除试试 可以看看这个文章

按照报错信息,你这个文件E:/myProject/Cloudpathology/.git/.COMMIT_EDITMSG.swp同时有多个程序打开,建议检查一下再重新尝试。
其实你这个问题用搜索引擎搜索一下就有答案了

clipboard.png

推荐问题