Workflows
Two teams, two printouts of git branch -a: one is three lines, the other eight. Same git binary, the same kinds of objects underneath, so the difference is a shape each team chose, not a feature git turned on.
- ▸The same
git branch -aprints three lines on one team and eight on another, yet one git built both. - ▸The same three commits land the same tree on
mainunder every shape; only the route and landing commit differ. - ▸No shape is the right one; the same feature is cheap for one team and wasteful for another.
Clone two teams' repos, run git branch -a in each, and the printouts differ in length. One team's list is three lines: your * main, then remotes/origin/HEAD -> origin/main and remotes/origin/main. The other runs on through remotes/origin/develop, remotes/origin/release/1.2, two remotes/origin/feature/* lines and a remotes/origin/hotfix/1.2.1. A fresh clone has only one local branch either way; the team's branches arrive as remotes/origin/*. Same command, same git, same kind of objects stored underneath. What differs is how many branches the team keeps alive and how long each one survives before the team deletes it after merging. Count the branches that never disappear and you have already read the team's model off the screen, no handbook required.