This case study follows an invented product team that spent a long stretch untangling years of branch confusion. The organisation, its repository and its troubles are fictional, assembled from patterns that are common in source control work. No outcome here should be read as a measured result. The value lies in the order of the decisions and the reasons behind them. The starting position The team maintained a billing application and two companion services in a single Git repository. Over several years the branch list had grown past anyone's ability to explain it. There was a main branch, a branch called develop, another called develop-new, release branches with inconsistent names, customer-specific forks and a large collection of personal branches. The practical symptom was uncertainty. When a defect was reported, nobody could say quickly which line of code a given customer was running. A fix applied in one place sometimes reappeared as a bug in the next release because it had n...