【问题标题】:git pull could not read from .git/MERGE_MSG (file was never created)git pull 无法从 .git/MERGE_MSG 读取(文件从未创建)
【发布时间】:2014-07-29 18:21:35
【问题描述】:


有没有人在执行 git pull 之前看到过这个错误,你是如何解决的?

F:\git\test-results-db>git pull origin bugfix/duplicate-test-times
From {stash_server_URL}
* branch            bugfix/duplicate-test-times -> FETCH_HEAD
Can't do inplace edit on .git/MERGE_MSG: Permission denied.
fatal: Could not read from '.git/MERGE_MSG': No such file or directory

之前有问题的用户和我们上次创建新分支作为解决方法时发生过这种情况。

谢谢,
迈克尔

【问题讨论】:

    标签: git git-pull


    【解决方案1】:

    从错误消息看来,用户对 .git/MERGE_MSG 没有权限。

    尝试以下方法:

    rm -F .git/MERGE_MSG
    

    【讨论】:

    • 试过了,但 .git/MERGE_MSG 从未在 .git 目录中创建,并且用户在该目录中具有完全权限。
    猜你喜欢
    • 2014-11-23
    • 1970-01-01
    • 2013-05-11
    • 1970-01-01
    • 2010-11-12
    • 1970-01-01
    • 2013-06-12
    • 1970-01-01
    • 2017-01-26
    相关资源
    最近更新 更多