Git rebase got 'unlink of file failed' error

后端 未结 3 1632
南旧
南旧 2020-12-25 15:34

Using msysgit 1.7.0.2, when doing git rebase -i, it hangs and there\'s no message.
After enter ctrl+c, I can see



        
3条回答
  •  天涯浪人
    2020-12-25 15:57

    I don't know if it applies in your situation, but I've just had a similar situation with 1.7.10.msysgit.1 (talking to a network share on an Ubuntu server). In my case, a failed merge had made several objects owned by root with permissions -r--rwSr--. A simple SSH login and

    sudo chown steve: .git/*
    

    fixed one problem (for my user - unless you're called steve, you'll need to change that to your username!), and

    chmod -R 0755 .git/*
    

    fixed the other.

提交回复
热议问题