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

后端 未结 30 2551
野趣味
野趣味 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:20

    Using SourceTree in Win 10, fixed the problem by closing Atom editor.

    Error reproduce:

    1. In branch B, create a md file, using Atom edit it, save and commit.
    2. Switch to branch A, pull down new commits from server.
    3. Try Switch back, Opps, it says “error: cannot stat 'file': Permission denied”.

提交回复
热议问题