This is more of a clarification question. In Gitlab, you can create multiple branches from the same repository, so the repository myrepository.git can have a master branch and then a development branch for example.
When I clone the repository to a local repository, I often do a single branch and not the whole repository with all of the branches like
git clone <url> --branch development --single-branch
If I am working on multiple branches, I then create a separate directory for each of the branches. My reasoning is that this seems cleaner since I will know what branches I am working in and there's no easy way to switch between the branches and sync up the files. Am I doing this incorrectly? Is there a reason why you would want to have multiple branches in the same directory?
Thanks.