I have a project, that is stored as a git-repo. The repo has several branches. Also I use OpenGrok (source browser) for the project. To be able to show all branches I cloned the project several times, after that did 'checkout' the required branch.
To update each workdir I do 'git fetch && git merge' for each workdir.
The Q: Is there a way to have one "main" clone, where need to do git fetch. After that each workdir will be updated from the "main" clone.