gitgithubgit-tower

Git Error on Pull: "Operation Not Permitted"


When pulling changes from a remote branch, Git is throwing me this error:

From https://github.com/JackWebbHeller/MyProject

* branch master -> FETCH_HEAD

error: unable to unlink old 'MyProject/folder/directory/index.html' (Operation not permitted)

That was taken from the transcript from Tower for Mac. Can anyone advise? Thanks!


Solution

  • You probably have file index.html open in another editor.

    The file was changed on the server and git tries to modify it.