Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does IntelliJ IDEA store shelf changes on the local drive?

I want to write a small backup script that would take my shelf changes in IntelliJ from my local drive and put them on a network drive. But I can't locate the path to where these are stored on my local drive.

Any ideas?

like image 293
goe Avatar asked Apr 21 '10 13:04

goe


People also ask

Where does IntelliJ IDEA store settings?

By default, IntelliJ IDEA stores user-specific files for each IDE instance (configuration, caches, plugins, logs, and so on) in the user's home directory.

How do I stash local changes 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.

What does Unshelve changes mean?

Unshelving is how you restore the shelveset to your machine so you can keep working on it. It doesn't change the shelveset on the server (to do that you need to shelve things again and use the same shelveset name). One example for how I use it is to move changes between machines while I'm working on them.

What is Shelving in git?

git stash temporarily shelves (or stashes) changes you've made to your working copy so you can work on something else, and then come back and re-apply them later on.


3 Answers

For me it's $user.home/.IntelliJIdea90/config/shelf

I'm not sure if that changes on OSX or not. It seems like it might be different, but once you find the .IntelliJIdea90 directory, it's in /config/shelf.

Update for comment Here is my .IntelliJIdea80/config/shelf directory after shelving some changes in 8.1.3:

skrall@skralldesktop:~/.IntelliJIdea80/config/shelf$ ls
AnotherTestOfshelving.patch
skrall@skralldesktop:~/.IntelliJIdea80/config/shelf$ 

I'll startup my Windows VM and see if it's the same place on Windows.

Update With Windows

Same place. This is Vista, so it's C:\Users\skrall\.IntelliJ90\config\shelf Can you search your local hard drive for a directory named shelf? Or, if that doesn't work, search for *.patch

like image 174
Steve K Avatar answered Oct 24 '22 02:10

Steve K


Instead of giving the fish, here is how to fish:

  1. Find an action item: +Shift+A (on a Mac) or Ctrl +Shift+A (on Windows/Linux)
  2. Type "change shelve"enter image description here
  3. Check the location where it is being storedenter image description here
like image 37
Ricardo Avatar answered Oct 24 '22 01:10

Ricardo


IntelliJ IDEA 15 on linux, shelved changes seem to be stored as individual files in the project directory, under the .shelf directory.

like image 21
Greg Chabala Avatar answered Oct 24 '22 03:10

Greg Chabala