How to unshelve changes in 'shelf' folder which can't be found in PyCharm GUI?

PyCharm was stuck due to unknown reasons, and I have to force quit.  And after reopening it, all shelved changes are gone. Just like this link.

I found some shelved changes in `.idea/shelf` folder, which might be the missing changes. However, these changes are inaccessible in PyCharm itself.

Is there a way to unshelve/restore these changes in shelf folder?

1

Problem solved. 

All the .patch files can be manually imported and unshelved:

  • Commit window → Shelf → Right click empty space → Import Patches…
  • Select the .patch file you want to apply in /<project_path>/.idea/shelf/<Change List Name>/shelved.patch
  • Right click the imported change list → Unshelve (just like a normal unshelve)

Reference: Unshelve problems – IDEs Support (IntelliJ Platform) | JetBrains

0

请先登录再写评论。