We have a huge product, and it has many functions, each of which takes a very long time, so we support short-lived function branches in TFS. For instance,
MAIN/ PROJECTMGT EMAILMGT etc..
And upon completion, they merge back into MAIN, and each development team works in different branches.
Merger process
Since each team works in different branches, there are no conflicts, however, the person responsible for merging the branches in MAIN should see a clear view of the files in different folders. Since we need to check and analyze a branch before merging, we also need to see the conflict of different branches and clearly figure it out.
Now we are switching to git, and while studying git, I am a bit at a loss how to organize branches. While we are working on the structure of files and folders, we have no idea which branch we are in.
We just tested the git test, and most of us who work with multiple branches are confused, and we also made merge errors.
TFS automatically merges everything into one branch, where the file actually belongs without specifying the branch.
I read about it, and I saw some suggestion to create several clones to emulate the type of branching of a physical folder like TFS.
Can anyone help me how can I do this? I am using Visual Studio Tools for Git.
UPDATE
Based on the comments, here are our current difficulties.
Each branch has separate versions of NuGet packages, for example, one branch can use EF 5, and the new branch has EF 6, the switching branch is painful, as it requires the restoration of nuget and all its warnings.
Like the nuget package, we have other third-party libraries (binaries) and its different versions in different branches.
During the merger, this is a mess, we continue to ask ourselves which branch we are in, however in VS it is easy, since the path to the physical folder tells us our branch.
It seems to me stupid to remember which branch we were when I checked three days ago. Although VS Git Tools displays it when you go into the source code explorer, it also does not work when we open several VS instances.
We are looking for a workflow to never use SWITCH BRANCH.