git下拉项目出现的问题:E325: ATTENTION Found a swap file by the name “.git/.COMMIT_EDITMSG.swp”

来源:互联网 发布:康涅狄格学院知乎 编辑:程序博客网 时间:2024/06/01 09:23

 I try to pull I get this message:

E325: ATTENTIONFound a swap file by the name ".git/.COMMIT_EDITMSG.swp"          owned by: X   dated: Wed Jan 23 16:01:06 2013         file name: ~X/Sites/mysite/.git/COMMIT_EDITMSG          modified: no         user name: X   host name: X-2.local        process ID: 77109While opening file ".git/COMMIT_EDITMSG"             dated: Thu Jan 24 16:22:48 2013      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 .git/COMMIT_EDITMSG"    to recover the changes (see ":help recovery").    If you did this already, delete the swap file ".git/.COMMIT_EDITMSG.swp"    to avoid this message.Swap file ".git/.COMMIT_EDITMSG.swp" already exists![O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:
解决办法:

you can use:

$rm .git/.COMMIT_EDITMSG.swp

to remove the file from the repository.

阅读全文
0 0
原创粉丝点击