Android工作室搁置的变化消失了,甚至没有.idea / shelf目录 [英] Android studio shelved changes disappeared, not even in the .idea/shelf directory

查看:733
本文介绍了Android工作室搁置的变化消失了,甚至没有.idea / shelf目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Android Studio
中进行了一些搁置更改但是,由于某些原因搁置的更改不再存在。
我检查了/project_directory/.idea/shelf/,但它们也不存在。
是否将Android studio备份.patch文件放在.idea / shelf以外的其他位置?

解决方案

据我所知,你可能被搞砸了。



IntelliJ / Android Studio不使用 git stash 来做他们的搁置 ,它是一个完全独立的机制。
您可能可以使用IDE的本地历史记录功能恢复旧版本,或者使用文件恢复软件(如 photorec )来恢复修补程序文件。

就我个人而言,我更喜欢用git命令行管理自己的版本控制:您可以在IntelliJ中打开一个终端来执行此操作。


I had some shelved changes in Android studio However, for some reason the shelved changes are not there anymore. I have checked /project_directory/.idea/shelf/ but they are not there either. does Android studio backup .patch files somewhere else other than .idea/shelf?

解决方案

As far as I know, you're probably screwed.

IntelliJ/Android Studio do not use git stash to do their "shelving", it's an entirely separate mechanism. You might be able to recover the old version using the "Local History" function of the IDE, or maybe with file recovery software like photorec to recover the patch files.

Personally, I prefer to manage my version control myself with the git command line: you can open up a terminal inside IntelliJ to do this.

这篇关于Android工作室搁置的变化消失了,甚至没有.idea / shelf目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆