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

后端 未结 30 2447
野趣味
野趣味 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条回答
  •  -上瘾入骨i
    2020-12-02 05:12

    An alternate solution rather than closing all apps that might be locking the directory as just about every other answer says to do, would be to use a utility that will unlock the files/directory without closing everything. (I hate needing to restart Visual Studio)

    LockHunter is the one that I use: https://lockhunter.com/ There are likely others out there as well, but this one has worked great for me.

提交回复
热议问题