Enable/Disable preserving project state when switching between Git branches
Answered
How do you enable and disable the setting that preserves the state of your project when switching between different GIT branches? I remember when I first set up IDEA it asked me if I wanted to preserve the state of my project (for example, the files you have open in the editor) when switching branches. I thought I would like this setting but I don't and I can't find where to turn this off.
Please sign in to leave a comment.
Hello Andrew,
You need to enable "Restore workspace on branch switching" option in "Settings | Version Control | Confirmation."
You could configure it in "File | New Project Settings"
A A Borisov there is a known issue please see: https://youtrack.jetbrains.com/issue/IDEA-183490
Great, thank you so much!
Is it possible to do so on global, not project level?
Hi, seems like this feature doesn't work anymore. May be because I'm using terminal (not built-in) for executing git commands and branches switching.
This feature is working in the latest IDEA.
This doesn't seem to work for me. Does the .idea folder need to be committed to version control for this to work?
Hello Sean,
Do you switch using IDE UI or using git in terminal?
Hi Yaroslav… switching in the Terminal. Does that not work?
Sean,
This case is still opened on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-183490