Couldn't save uncommitted changes. Tried to save uncommitted changes in stash before Update...
来源:互联网 发布:在vb中cstr是什么意思 编辑:程序博客网 时间:2024/05/16 12:46
今天在从远程库拉代码的时候失败了,android studio弹出了错误提示。
错误日志如下图:
还能怎么办,我也很绝望啊,百度了半天还是没有找到解决办法。于是,我又回头仔细看了看报错信息,哎,突然发现这/.git/index.lock': File exists. Cannot save the current index state。是不是这个index.lock文件搞的鬼,于是打开项目下的git文件夹找到这个文件删除了,然后重新拉取代码,就OK了。幸福来得太突然,哈哈。
上个图直观点:
那么这个index.lock是干嘛用的呢,百度内容如下:
在你进行某些比较费时的git操作时自动生成,操作结束后自动删除,相当于一个锁定文件,目的在于防止对一个目录同时进行多个操作。有时强制关闭进行中的git操作,这个文件没有被自动删除,之后你就无法进行其他操作,必须手动删除
阅读全文
1 0
- Couldn't save uncommitted changes. Tried to save uncommitted changes in stash before Update...
- Couldn't save uncommitted changes,Tried to save uncommitted changes in stash before update,but faile
- Couldn't save uncommitted changes.问题解决
- Git出现Couldn't save uncommitted changes.问题的解决
- Couldn't save uncommitted changes / unable to auto-detect email address错误
- repo - contains uncommitted changes
- repo - contains uncommitted changes
- contains uncommitted changes解决办法
- repo - contains uncommitted changes .
- error: .repo/manifests/: contains uncommitted changes
- error: .repo/manifests/: contains uncommitted changes
- error: .repo/manifests/: contains uncommitted changes 解决方法
- error: .repo/manifests/: contains uncommitted changes .
- [git] error: .repo/manifests/: contains uncommitted changes
- error: .repo/manifests/: contains uncommitted changes 解决办法
- error: .repo/manifests/: contains uncommitted changes
- The working copy 'xxx' has uncommitted changes.
- error: .repo/manifests/: contains uncommitted changes
- hdu5325记忆化深搜
- CS模式聊天软件
- Day4-11.Your first Java program
- 概率+逆元 书
- API对接网关 code review
- Couldn't save uncommitted changes. Tried to save uncommitted changes in stash before Update...
- Android AbsListView.OnScrollListener
- 幂等
- hadoop容器化
- FTTH Fiber Cable Solution
- java日期大小比较
- linux实验楼学习笔记3
- No typehandler found for property XXX
- 苹果手机数据丢失找回方法及其数据备份汇总