I am a little bit confused how branching is working in Visual Studio Code with Git. I came to Git world from MSFT and try to understand how to handle the branching in Git.
I have 2 branches: DEV and DEV-ScriptEditorWebPart.
DEV is the branch where all the final version of the code are add to deploy to DEV environment for testing.
DEV-ScriptEditorWebPart is feature branch where new code is generated.
When I look at the DevOps files are stored correctly.
DEV BRANCH
DEV-ScriptEditorWebPart
As you see feature branch contains folder that is not in DEV, which what I expect.
From my previous experience with MSFT I would expect the same would be in VS Code. However, it is not the case or at least I am missing some fundamental knowledge of how Visual Studio Code is working with Git and DevOps.
Following the snapshot of the Visual Studio Code, I have opened. Initial Branch is DEV. As you can see, it also shows me a lot of untracked files from another branch in Source Control which should not be there.
When I try to switch it to feature branch I am getting next message
Per my understanding it is correct. DEV doesn't have this Omers.Embed folder and for sure for DEV, it is untracked. However, I cannot switch to the folder where these files belong to.
What might be the problem here?