Found a swap file by the name

前端 未结 5 992
清酒与你
清酒与你 2020-12-13 12:10

When I try to merge my branch with a remote branch:

git merge feature/remote_branch

I got this message:

E325: ATTENTION
Fou         


        
5条回答
  •  春和景丽
    2020-12-13 12:24

    Looks like you have an open git commit or git merge going on, and an editor is still open editing the commit message.

    Two choices:

    1. Find the session and finish it (preferable).
    2. Delete the .swp file (if you're sure the other git session has gone away).

    Clarification from comments:

    • The session is the editing session.
    • You can see what .swp is being used by entering the command :sw within the editing session, but generally it's a hidden file in the same directory as the file you are using, with a .swp file suffix (i.e. ~/myfile.txt would be ~/.myfile.txt.swp).

提交回复
热议问题