git rebase: “error: cannot stat 'file': Permission denied”

后端 未结 30 2464
野趣味
野趣味 2020-12-02 04:56

I\'m using git, and made a small commit followed by a large one. I decided to use git rebase to squash the two commits together before pushing them. (I\'ve ne

30条回答
  •  温柔的废话
    2020-12-02 05:21

    This happens to me in Windows occasionally

    error: cannot stat 'filename': Permission denied

    Most often I have multiple instance of bit bash open, and one of the git bash instances is in a directory that doesn't exist in the remote branch I'm pulling from.

    Closing all but one instance of git bash solves the issue for me.

提交回复
热议问题