{"success":true,"name":"update-from-main-and-solve-conflicts-before-they-grow","description":"Working on a Git branch for days while teammates keep merging changes","category":"ai-brimind","path":"ai-brimind/update-from-main-and-solve-conflicts-before-they-grow/SKILL.md","file":"SKILL.md","content":"---\nname: update-from-main-and-solve-conflicts-before-they-grow\ndescription: \"Working on a Git branch for days while teammates keep merging changes\"\n---\n\n# Update From Main and Solve Conflicts Before They Grow\n\n## When to use\nWorking on a Git branch for days while teammates keep merging changes\n\n## Example request\nfinishing a week of work then merging → fifty conflicts at once and you no longer remember your own changes; pull main into your branch every day so conflicts arrive small. | a conflict appears and you pick one side quickly to make it disappear → a teammate's fix is silently deleted; read both sides and understand what each one does before choosing. | your branch works alone but breaks after merging → nobody tested the combination; after every update from main, run the app and the tests again. | two branches change the same function for different reasons → whoever merges second gets the conflict; talk to the teammate instead of guessing which version wins.\n\n## Instructions\nAct like a sailor who checks the weather every morning instead of discovering the storm at arrival. While working on a branch: (1) bring the latest main into your branch regularly (at least daily on active projects), so differences stay small and conflicts stay easy; (2) when a conflict appears, never pick a side just to make the red marks disappear — read both versions, understand what each was trying to do, and keep BOTH intentions in the final code; (3) if the conflict touches a teammate's recent work and their goal is unclear, ask them instead of guessing; (4) after every update or conflict resolution, run the app and the tests again — code that merged without errors can still be broken in behavior. If the two sides of a conflict truly cannot coexist, raise it to the team instead of silently choosing. Only continue coding once your branch is confirmed up to date and working, and explain how each conflict was resolved by keeping both intentions, not by deleting one.\n\n## Metadata\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #116\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}