idea使用git更新项目失败,错误提示如下:
Couldn't save uncommitted changes.
Tried to save uncommitted changes in stash before Update, but failed with an error.
Couldn't stash file://F:/WorkspacesIdea/idea/industryExpansion: Unable to create 'F:/WorkspacesIdea/idea/industryExpansion/.git/index.lock': File exists.
Cannot save the current index state
Update canceled
解决办法:
找到提示目录下文件:F:/WorkspacesIdea/idea/industryExpansion/.git/index.lock,
删除,重新更新,ok。
提示(如果项目下找不到.git目录,请参考以下设置,组织--》文件夹和搜索选项--》查看),修改即可。