Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio / Git / VCS Shelve

I use Git for version control and Android Studio nicely integrates with it, love it!

But now, I did 'VCS->Shelve changes...'

and POOF, they were gone. I thought I needed to use stash, but then I thought let's see how to get it back, but I do not find a way to get it back.

Did anyone have this same issue and seem to resolve it?

like image 687
Boy Avatar asked Jun 13 '14 13:06

Boy


People also ask

How do I shelve changes in Git?

Shelve changesIn the Commit tool window Alt+0 , right-click the files or the changelist you want to put to a shelf and select Shelve changes from the context menu. In the Shelve Changes dialog, review the list of modified files.

What is shelve changes in Android Studio?

Shelving is temporarily storing pending changes you have not committed yet. This is useful, for example, if you need to switch to another task, and you want to set your changes aside to work on them later.

Is shelve same as stash?

Stash is the git shelve equivalent.


1 Answers

You can find your shelf in the Changes window, which you can find under View -> Tool Windows -> Changes (or press ⌘9 on Mac, maybe Ctrl9 on Windows?)

Right clicking on your change gets you options for it, more info can be found at IntelliJ's doc site (since Android Studio is IntelliJ with some more Android stuff): http://www.jetbrains.com/idea/webhelp/intellij-idea-tool-windows.html

like image 78
Ann-Sofi Avatar answered Oct 13 '22 21:10

Ann-Sofi