Git branching while the editor is open cause problem

I have to close the editor before I switch to a new branch on git because the editor just automatically saves the current state of the project on my chosen branch and I can’t see the changes. Is there a workaround to this so I don’t have to close the editor each time?

True, the Editor does not know about the switch of branch, nor of any other form of checkout/pull/reset and does not refresh assets.

So for now there is no way around quitting/relaunching the editor to update files in the project.
Though I could add a dedicated UI for that in the source control menu, that would allow the editor to drive the switch itself and thus handle it gracefully (at least to a certain extent)

That would be great. Does other SCMs have this problem?

Yes, same problem for Subversion, Perforce and Plastic SCM, the UI and source control API is missing such features