Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio shelved changes disappeared, not even in the .idea/shelf directory

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?

like image 730
shl703.shl Avatar asked Oct 15 '25 15:10

shl703.shl


2 Answers

I had the same problem I solved it this way: go to VCS > Enable Version Control Integration. then go to View > Tool Windows > Version Control. now by clicking on version control tab you will see your previous shelved changes. Hope it helps someone :)

like image 79
Mirwais Shah Arya Avatar answered Oct 18 '25 07:10

Mirwais Shah Arya


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.

like image 43
Chris Kitching Avatar answered Oct 18 '25 08:10

Chris Kitching



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!