Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get back lost shelf changes

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?

like image 461
Sanjay Dutt Avatar asked Sep 20 '16 08:09

Sanjay Dutt


People also ask

How can I get my Shelf changes 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.

What does Unshelve changes mean?

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.

How do I get my stashed changes back in Intellij?

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.

How do you get shelve changes in TFS?

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.


1 Answers

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).

like image 141
tcb Avatar answered Sep 21 '22 15:09

tcb