切换分支(git checkout xxx)时报错: error: cannot stat ‘file’: Permission denied
解决方法:退出编辑器、浏览器、资源管理器等,然后再切换就可以了。