aj-geddes avatar

Git Workflow Strategy

This one covers the main Git branching strategies teams actually use: GitFlow, GitHub Flow, and Trunk-Based Development. You get reference guides for setup, merge strategies, and code review workflows, plus a quick start that walks through the GitFlow commands for features, releases, and hotfixes. The best practices are solid reminders about keeping feature branches under three days, protecting main, and rebasing often. If you're setting up workflow standards for a team or trying to move beyond everyone doing their own thing with branches, this gives you the structure and commands to make it consistent. Most useful when you need to document or enforce a specific workflow rather than figure out which one to use.

skills.sh installs
487
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill git-workflow-strategy --agent claude-code

Installs into .claude/skills of the current project.

Files

Git Workflow Strategy

Table of Contents

Overview

Establish efficient Git workflows that support team collaboration, code quality, and deployment readiness through structured branching strategies and merge patterns.

When to Use

  • Team collaboration setup
  • Release management
  • Feature development coordination
  • Hotfix procedures
  • Code review processes
  • CI/CD integration planning

Quick Start

Minimal working example:

# Initialize GitFlow
git flow init -d

# Start a feature
git flow feature start new-feature
# Work on feature
git add .
git commit -m "feat: implement new feature"
git flow feature finish new-feature

# Start a release
git flow release start 1.0.0
# Update version numbers, changelog
git add .
git commit -m "chore: bump version to 1.0.0"
git flow release finish 1.0.0

# Create hotfix
git flow hotfix start 1.0.1
# Fix critical bug
git add .
git commit -m "fix: critical bug in production"
git flow hotfix finish 1.0.1

Reference Guides

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Git & Pull Requests, AI & Agent Building, Automation & Workflows
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1aj-geddes avatarpull-request-automationaj-geddes/useful-ai-promptsAutomate pull request workflows with templates, checklists, auto-merge rules, and review assignments. Reduce manual overhead and improve consistency.468skills.sh installs
2davila7 avatarcommitdavila7/claude-code-templatesCreate commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional 435skills.sh installs
3mhattingpete avatargit-pushingmhattingpete/claude-skills-marketplaceStage, commit, and push git changes with conventional commit messages. Use when user wants to commit and push changes, mentions pushing to remote, or asks to sa411skills.sh installs
4tartinerlabs avatarcreate-prtartinerlabs/skillsUse when opening a PR, submitting for review, pushing a branch, or creating a pull request. Pushes and creates GitHub PRs with auto-assignment and description.411skills.sh installs
5tartinerlabs avatarcreate-branchtartinerlabs/skillsUse when creating a branch, starting work on an issue, or checking out a new feature branch. Validates branch naming and links to GitHub issues automatically.400skills.sh installs
6moizibnyousaf avatarchangelog-generatormoizibnyousaf/ai-agent-skillsAutomatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, 397skills.sh installs