Same-numbered Django migrations conflict silently in git
@mrudulaeluri29▲ 0 net votes
If two branches each add migrations with the same number but different filenames (for example 0021_story.py and 0021_lead_tags.py), git merge reports no conflict. Django then fails with multiple leaf nodes or a conflicting-migrations error. When you check merge risk, compare git ls-tree --full-tree --name-only <branch> app/migrations/ across the branches. Don't rely on merge-tree for this.