我重新启动VS代码,并从一个分支切换到另一个分支,显示为.env权限被拒绝。我切换到新分支,但无法取消登台,并提交了该分支,因为权限被拒绝。
e5608MINGW32 /c/workspace/myworkspace/angular/project (sprint15/feature/IS-894-locally-installed-application-issue)
$ git checkout sprint/IS-1767-in-tune-API-UI
error: unable to create file .env: Permission denied
Checking out files: 100% (98/98), done.
Switched to branch 'sprint/IS-1767-in-tune-API-UI'
D .env
Your branch is up to date with 'origin/sprint/FIS-1767-in-tune-API-UI'.
e5608MINGW32 /c/workspace/myworkspace/angular/project (sprint/IS-1767-in-tune-API-UI)
作为seen here,通常在另一个Windows进程保留要修改的资源(此处为.env
)的句柄时可见。
另一个是当两个处理的帐户使用不同的帐户运行时。
在所有情况下,如所评论,关闭/重新启动应该会有所帮助。