本文介绍了当使用GitHubDesktop进行文件更新上传时遇到“A lock file already exists in the repository”错误的解决方案。通过删除.git文件夹中的index.lock文件,或者关闭所有相关应用后重启GitHubDesktop,可以有效解决该问题。
github desktop 无法更新上传本地文件
问题: 当 commit to master时,出现:A lock file already exits in the repository,which blocks this operation from completing.
解决办法: 在文件的.git文件中 有个index.lock文件。把它删除掉就行了
如果说 无法删除那个文件,那就关掉所有打开的网页文件软件等,全部关闭之后再重新打开github desktop。然后重新尝试 commit to master。