git-flow

- Deciding which branch to base work on.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "git-flow" with this command: npx skills add poletron/custom-rules/poletron-custom-rules-git-flow

Git Flow Strategy

When to Use

  • Deciding which branch to base work on.

  • Creating a new Release or Hotfix.

  • Merging strategies (Squash vs Merge Commit).

  1. Branching Model

Branch Source Merge Into Lifespan Purpose

main

Infinite Production-ready code. Stable.

develop

main

main

Infinite Integration branch for next release.

feature/*

develop

develop

Short New features (e.g., feature/login-page ).

release/*

develop

develop , main

Medium Release prep (e.g., release/v1.0.0 ).

hotfix/*

main

develop , main

Very Short Production critical fixes (e.g., hotfix/crash ).

  1. Feature Development
  • Start: Update develop and branch off. git checkout develop && git pull origin develop git checkout -b feature/my-feature

  • Work: Commit changes. Use github skill templates for PRs.

  • Finish: PR into develop . Squash merge recommended.

  1. Release Process
  • Start: Branch off develop when features are frozen. git checkout develop git checkout -b release/v1.2.0

  • Work: Bump versions, update changelogs, fix bugs. NO NEW FEATURES.

  • Finish:

  • Merge into main (Tag this commit).

  • Merge into develop (Back-propagate fixes).

  • Delete release/v1.2.0 branch.

  1. Hotfixes
  • Start: Branch off main (Production). git checkout main git checkout -b hotfix/critical-bug

  • Work: Fix the critical bug. Minimal changes.

  • Finish:

  • Merge into main (Tag this commit).

  • Merge into develop .

  • Delete hotfix branch.

  1. Protocols
  • Never commit directly to main or develop .

  • Keep history clean. Use interactive rebase before PRs.

  • Tags are immutable. Once pushed, do not change.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

lancedb

No summary provided by upstream source.

Repository SourceNeeds Review
General

javascript-mastery

No summary provided by upstream source.

Repository SourceNeeds Review
General

coding-standards

No summary provided by upstream source.

Repository SourceNeeds Review
General

trpc

No summary provided by upstream source.

Repository SourceNeeds Review