I want to match some code lines between the main
branch and the test
branch, but have each of the branches in their own VS code window. Is it possible to maintain the git changes in the main
branch with its own VS Code window when performing git switch test
on different VS Code window?
I tried to have two workspace, let's say workspace-main
supposed for the main
branch and workspace-test
for the test
branch. Therefore, I managed to have two instance of VS Code window with the same project. However, whenever, I performed the git switch test
on the workspace-test
separated window, the workspace-main
window also changes its git branch to test
.
I haven't seen yet any examples on the internet or here. I'm wondering if that's possible rather than switching branches on a single VS Code window.