What problem does it solve?
Choosing the right repository structure (monorepo vs. polyrepo) and branching strategy (Git Flow, GitHub Flow, Trunk-Based) is crucial for team efficiency and project scalability, but often leads to confusion and suboptimal setups. This Skill provides clarity and best practices.
Core Features & Use Cases
- Branching Strategies: Detailed explanations and workflows for Git Flow, GitHub Flow, Trunk-Based Development, and Release Branch strategies to optimize your team's development cycle.
- Repository Organization: Guidance on Monorepo vs. Polyrepo, including advantages, disadvantages, and implementation details to make informed architectural decisions.
- Submodule/Subtree Management: Instructions for effectively integrating and managing external dependencies or shared code within a larger repository.
- Use Case: A lead developer needs to decide whether to adopt a monorepo for a new project or maintain a polyrepo structure. This Skill provides a decision matrix, implementation examples, and best practices for each approach, ensuring an informed choice that supports the team's long-term goals.
Quick Start
Git Flow: Start a new feature branch
git checkout develop
git pull origin develop
git checkout -b feature/user-authentication
GitHub Flow: Create a feature branch
git checkout main
git pull origin main
git checkout -b feature/add-api-logging