git-workflow-and-versioning

Guides atomic commits, trunk-based branching, and versioning discipline for git workflows.

4|Updated Jun 19, 2026
One-click install
npx skills add https://github.com/douglance/sdlc-plugin --skill git-workflow-and-versioning-douglance
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: git-workflow-and-versioning
Source: https://github.com/douglance/sdlc-plugin/tree/main/.rulesync/skills/git-workflow-and-versioning
Command: npx skills add https://github.com/douglance/sdlc-plugin --skill git-workflow-and-versioning-douglance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Code changes often end up in giant, unreviewable commits with unclear messages, mixed concerns, and long-lived branches that create merge conflicts and integration risk. ## Core Features & Use Cases - Atomic Commit Discipline: Enforces one logical change per commit with conventional message types (feat, fix, refactor, test, docs, chore) that explain the why. - Trunk-Based Branching Strategy: Keeps main deployable with short-lived feature branches, standard naming conventions, and feature flags over long-lived branches. - Save Point Pattern: Commits each verified increment so a failing change can be reverted instantly without losing prior work. - Use Case: An agent implementing a feature across multiple files commits each tested slice separately, producing a clean history that reviewers can follow and revert safely. ## Quick Start Use the git-workflow-and-versioning skill to commit my current changes as a series of atomic, well-described commits.

Frequently Asked Questions about git-workflow-and-versioning

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write good git commit messages?▼

Use the format 'type: short description' with types like feat, fix, refactor, test, docs, or chore. Add a body explaining why the change was made, not what changed, since the diff already shows that.

What is trunk-based development and should I use it?▼

Trunk-based development keeps main always deployable with short-lived feature branches merged within 1-3 days. DORA research links it to high-performing teams, though the commit discipline principles adapt to gitflow or other branching models.

How large should a git commit or pull request be?▼

Target around 100 lines per commit or PR for easy review and reverts. Changes near 300 lines are acceptable for one logical change, but anything approaching 1000 lines should be split into smaller commits.

How do I use git worktrees for parallel development?▼

Run 'git worktree add ../project-feature-a feature/task-creation' to create a separate directory per branch. Multiple agents or developers can work simultaneously without branch switching, then remove worktrees after merging.

How do I find which commit introduced a bug?▼

Use 'git bisect start', mark the bad and known-good commits, and git will checkout midpoints for you to test. You can also use git blame on a file or git log --grep to search commit messages.

Should generated files be committed to git?▼

Commit generated files only when the project expects them, such as package-lock.json or Prisma migrations. Never commit build output, .env files, or secrets, and ensure .gitignore covers node_modules, dist, and environment files.