Switching between git branches can be cumbersome. They usually require a full build and there are lots of things that can go wrong. The past 10 years I regularly have 10 workspaces open at the same time, but they were on different bnd/git workspaces.
Of course it is possible to have different git workspaces on the same repository. However, that is easy to get confused. Recently I learned about git worktrees. They share one Git repository, well the
.git/ directory, but allow you to get the files in a different directory.
master $ git worktree add ../branch feature/branch
Git tracks these worktrees and will warn you when you want to checkout the same branch in different places. I find it extremely useful.