Home  >  Q&A  >  body text

javascript - git merge will cause Updating 51a6e88..e72701c error: cannot

Updating 51a6e88..e72701c
error: cannot stat '.git.html.swp': Permission denied
But I didn’t write this myself, please explain

三叔三叔2646 days ago1046

reply all(2)I'll reply

  • typecho

    typecho2017-06-27 09:20:14

    Insufficient permissions. git bash opens with administrator privileges. .swp is a temporary file

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-06-27 09:20:14

    First of all, it is not recommended to put the project on the desktop. Secondly, you should have opened this file with Vim/Vi and forced exit, so there is .swp file

    Solution:

    1. If you don’t use Vim or Vi, you can delete this file and try again.

    2. If it still doesn’t work, close all editors or IDEs you have open and try again.

    If that doesn’t work, please post the error after the second solution

    reply
    0
  • Cancelreply