I was just wondering if anybody else had the problem and what they were doing about it:
When working on a project I frequently switch git branches (for example to quickly inspect work of someone else, or to fix a bug) and when I do so, I tend to have files open that don't exist in that other branch.
ST2 now shows those files as unsaved while on the other branch and every so often it happens that I accidentally save one of those files for which I then have to go back into the command line and rm it in order to be able to switch back again.
Is there a way to make ST2 save the open file configuration, then, when switching to another branch possibly restore previously open files (and close the other ones) and vice versa?
I was thinking of resorting to simply having 2 clones of my git repository but then I would have to create a new virtualhost and remember to use the right one when checking things. With one clone it works fine, just ST2 is a little annoying with regards to that.
Anyone having the same trouble? What are your solutions? Thanks!