I have shelved my 26 java files changes via Intellij Idea 2016.2.1 and I checkout to different branch.
When I came to old branch to check my shelved changes.
I gone a mad now, I lost all the files. I was worked nearly two months
Can somebody help to get it back?
In the Shelf tab, select the changelist or the files you want to unshelve. Press Ctrl+Shift+U or choose Unshelve from the context menu of the selection. In the Unshelve Changes dialog, specify the changelist you want to restore the unshelved changes to in the Name field.
The unshelve command restores shelved file revisions, check-in notes, comments, and work item associations to the current workspace or removes an existing shelveset from the server.
From the main menu, choose Git | Uncommitted Changes | Unstash Changes. Select the Git root where you want to apply a stash, and make sure that the correct branch is checked out. Select the stash you want to apply from the list. If you want to check which files are affected in the selected stash, click View.
To shelve your current pending changes, right click the project, Shelve, add a shelve name. This will save (or Shelve) the changes to the server (no-one will see them) You then do Undo Pending Changes to revert your code back to the last check-in point.
You can restore the state of those files if they were edited in IntelliJ. Use local history to see all the changes made in IntelliJ (VCS -> Local History -> Show History).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With