Not that you or I would ever need to do such a thing …
but just in case a friend of a friend ever deletes a file using the SDK (or NetBeans 8.2) and is desperate to recover their hours of precious work, here’s a trick that might rescue them:
Open the “Files” window using Ctrl-2 or “Window” → “Files”.
Navigate to the parent folder/directory where the file used to be.
Right-click on that folder and select “History” → “Revert Deleted”.
Check the checkbox next to the file you—I mean, they—wish to undelete.
I browse/search repo history, revert, restore, etc. so much that GK has become a key tool for me that’d be painful to lose. I even find it easier to browse source than the IDE sometimes, or do quick trivial file edits. Just my personal workflow, I haven’t met anyone else who works exactly the same way yet.
I definitely don’t “get” people who ONLY use a command line for Git (I use cli plenty, just don’t think it’s the right tool here, especially when resolving conflicts or browsing). Ultrawide monitor may have something to do with it.