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

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

    I was also on a Windows machine using Git Shell when I encountered the same error.

    However, at the time I had multiple Git terminals open.

    The first terminal received the error you posted about above and the other terminal had previously ran the grunt serve terminal command from yeoman (linked below). The second terminal needed to remain open to host a local server instance.

    Shutting down all terminal windows running ongoing processes can cause the error to go away.

    At least that's what worked for me. After I shut down the second terminal window, I could easily checkout different branches and manipulate files.

    Grunt Serve Command - Yeoman.I/O
    http://yeoman.io/learning/

提交回复
热议问题