SubGit only synchronizes the branches that you specified in the SubGit configuration file. By default they are:
trunk = trunk:refs/heads/master branches = branches/*:refs/heads/* shelves = shelves/*:refs/shelves/* tags = tags/*:refs/tags/*
So, if you use a different namespace, for example. refs / heads / nosync / *, branches in it will not be synchronized.
Or you can use refs / heads / * for regular branches (which are not in sync) and set up a special refs / heads / sync / * namespace for synchronization:
trunk = trunk:refs/heads/sync/master branches = branches/*:refs/heads/sync/* shelves = shelves/*:refs/shelves/* tags = tags/*:refs/tags/sync/*
Please note that long branch names (e.g. refs / heads / sync / master) do not cause inconvenience, because after cloning such a Git repository you can assign your own local refs / heads / * links with short names to track branches with long names from one or another namespace. That is why I think this is a good solution for you.
source share