Getting multiple branch source code?

Can somebody explain this to me. I thought it would pull the 2.8 source code into a new folder within the ‘blender-git’ folder. It does ,but it has the source code from the ‘master’ in it. I can’t figure out what I’m suppose to do now to get the 2.8 source code.

  • Checkout multiple branches from one repository:
    When you want to checkout 2 Blender versions in parallel, you can use git worktree. Here is an example for how to setup a worktree for another branch (blender2.8 in this case). We assume you have already cloned the repository and you have moved your commandline tool into the main folder of the blender sources.

git worktree add -B blender2.8 …/blender2.8
cd …/blender2.8
git submodule update --init --recursive