How to Switch Git Branch with Local Changes →

I find myself working on the wrong branch locally far too many times - enough to write a post about it. If you have been working on the wrong branch, your commit could be blocked by git: Please, commit your changes or stash them before you can switch branches. Git…