gpt4 book ai didi

java - 找到一个名为 ".git/.MERGE_MSG.swp"的交换文件

转载 作者:IT王子 更新时间:2023-10-29 01:01:55 26 4
gpt4 key购买 nike

我尝试 pull 原始分支名称

并得到了这个奇怪的错误:

error: There was a problem with the editor 'vi'.
Not committing merge; use 'git commit' to complete the merge.


E325: ATTENTION
Found a swap file by the name ".git/.MERGE_MSG.swp"
owned by: eladb dated: Tue Aug 20 10:52:03 2013
file name: ~eladb/MyWorkspace/Client/.git/MERGE_MSG
modified: no
user name: eladb host name: Elads-MacBook-Pro-2.local
process ID: 29959 (still running)
While opening file ".git/MERGE_MSG"
dated: Tue Aug 20 10:53:11 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/MERGE_MSG"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file ".git/.MERGE_MSG.swp"
to avoid this message.

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

如何解决这个问题?

最佳答案

似乎由 vi 创建的交换文件不知何故未被删除。

删除 .git/.MERGE_MSG.swp 并再次尝试 git merge

关于java - 找到一个名为 ".git/.MERGE_MSG.swp"的交换文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18329768/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com