8 / 11 · Book 17 · Branching Strategies← prev⊞ allnext →Get the book →
1.8Interactive Exercise: Map Your Branching Strategy
Step-by-Step
# Step 1: Examine your current project's branching structure
git branch -a
# Step 2: Look at the recent merge history to understand the pattern
git log --oneline --graph --decorate --all -20
# Step 3: Count how many long-lived branches exist
git branch -r | wc -l
# Step 4: Check the age of feature branches
git for-each-ref --sort=-committerdate refs/remotes/ \
--format='%(committerdate:short) %(refname:short)'
# Step 5: Measure your average PR pipeline time
# (Check your CI dashboard for this metric)