Skip to content

feat(git): v9.4.0 branch lifecycle discipline#176

Merged
nullhack merged 2 commits into
mainfrom
chore/v9.4.0-branch-lifecycle
May 28, 2026
Merged

feat(git): v9.4.0 branch lifecycle discipline#176
nullhack merged 2 commits into
mainfrom
chore/v9.4.0-branch-lifecycle

Conversation

@nullhack
Copy link
Copy Markdown
Owner

Summary

Prevents merge conflicts from diverged dev/main histories by enforcing a branch lifecycle discipline across three skills and the git conventions knowledge base.

Changes

  • merge-local/SKILL.md: sync main with remote, reset dev to origin/main before squash-merge, delete feature branch after merge
  • create-pr/SKILL.md: after PR merged, sync local main and reset dev to origin/main for clean next cycle
  • structure-feature/SKILL.md: pull remote main before creating feature branch
  • git-conventions.md: added Branch Lifecycle concept (short-lived feature branches, only main/dev persist), updated Conflict Prevention and Administrative PR sections

Why

After a PR is squash-merged (dev → main on GitHub), local dev retains its original history while main has a new squash commit. The next PR (dev → main) conflicts because histories diverged. Fix: reset dev to origin/main after each PR merge and before each squash-merge.

nullhack added 2 commits May 28, 2026 12:37
… feature branches

- merge-local: sync main + reset dev to origin/main before squash-merge, delete feature branch after
- create-pr: sync local branches after PR merged to prevent history divergence
- structure-feature: pull remote main before creating feature branch
- git-conventions: document Branch Lifecycle concept, update Conflict Prevention
@nullhack nullhack merged commit baa25bf into main May 28, 2026
10 checks passed
@nullhack nullhack deleted the chore/v9.4.0-branch-lifecycle branch May 28, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant