Przejdź do treści
Biblioteka skilli
Programowanie · Nauka i wyjaśnianie

gitflow

/gitflow

Opisuje konwencje przepływu Gitflow: gałęzie main i develop, gałęzie feature, release i hotfix, wersjonowanie semantyczne, reguły pull requestów oraz ochronę gałęzi.

Repozytorium
skills ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
08.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 08.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Opisuje konwencje przepływu Gitflow: gałęzie main i develop, gałęzie feature, release i hotfix, wersjonowanie semantyczne, reguły pull requestów oraz ochronę gałęzi.

Oryginalny opis (EN)

Branching, merging, versioning, and release conventions for the Gitflow workflow, covering main/develop branches, feature/release/hotfix branches, semantic versioning, and pull request rules. Use when creating a branch, naming a branch, planning a release or hotfix, writing a commit message, or setting up branch protection for a repository that follows Gitflow.

Jak działa

  1. Workflow for a Feature Change
  2. Main Branches
  3. Supporting Branches
  4. Commit Messages
  5. Semantic Versioning
  6. Pull Request Rules
  7. Branch Protection Rules
  8. Release Process
  9. Hotfix Process
Sekcje z nagłówków SKILL.md, w oryginale · 129 linii, 761 słów
Podgląd SKILL.md
---
name: gitflow
description: "Branching, merging, versioning, and release conventions for the Gitflow workflow, covering main/develop branches, feature/release/hotfix branches, semantic versioning, and pull request rules. Use when creating a branch, naming a branch, planning a release or hotfix, writing a commit message, or setting up branch protection for a repository that follows Gitflow."
metadata:
  maintainer: Mindrally
  source: https://github.com/Mindrally/skills
---

# Gitflow

This skill covers the Gitflow branching model: the two long-lived branches, the three supporting branch types, commit message conventions, semantic versioning, and the release and hotfix processes.

## Workflow for a Feature Change

1. **Sync develop** — Run `git checkout develop && git pull origin develop` so the feature branches from the latest development state.
2. **Create the feature branch** — Run `git checkout -b feature/123-user-authentication`, using the naming convention `feature/[issue-id]-descriptive-name`.
3. **Commit with conventional messages** — Use `type(scope): description` for every commit (see Commit Messages below).
4. **Rebase or merge develop in** — Before opening a PR, bring the branch up to date: `git fetch origin && git rebase origin/develop` (or merge, per team convention).
5. **Open a pull request into develop** — Require at least one approval and passing CI checks; never commit directly to `develop`.
6. **Merge and clean up** — After merge, delete the feature branch both locally and on the remote: `git branch -d feature/123-user-authentication && git push origin --delete feature/123-user-authentication`.

## Main Branches

### main (or master)

- Contains production-ready code only.
- Never commit directly to `main`.
- Only accepts merges from `hotfix/*` branches or `release/*` branches.
- Must be tagged with a version number after every merge (e.g. `git tag -a v1.2.0 -m "Release 1.2.0"`).

### develop

- The main integration branch; contains the latest delivered development changes.
- Source branch for all `feature/*` branches.
- Never commit directly to `develop` — all changes land through pull requests.

## Supporting Branches

### feature/*

- Branch from: `develop`.
- Merge back into: `develop`.
- Naming convention: `feature/[issue-id]-descriptive-name` (e.g. `feature/123-user-authentication`).
- Must be up to date with `develop` before opening a PR.
- Delete after merge.

### release/*

- Branch from: `develop`.
- Merge back into: `main` **and** `develop`.
- Naming convention: `release/vX.Y.Z` (e.g. `release/v1.2.0`).
- Scope is limited to bug fixes, documentation, and release-oriented tasks — no new features.
- Delete after merge.

### hotfix/*

- Branch from: `main`.
- Merge back into: `main` **and** `develop`.
- Naming convention: `hotfix/vX.Y.Z` (e.g. `hotfix/v1.2.1`).
- Reserved for urgent production fixes only.
- Delete after merge.

## Commit Messages

Use Conventional Commits format: `type(scope): description`.

| Type | Meaning |
|---|---|
| `feat` | New feature |
| `fix` | Bug fix |
| `docs` | Documentation changes |
| `style` | Formatting, missing semicolons, etc. — no logic change |
| `refactor` | Code restructuring without behavior change |
| `test` | Adding or correcting tests |
| `chore` | Maintenance tasks (build scripts, dependency bumps) |

Example:

```
feat(auth): add refresh-token rotation

fix(orders): prevent duplicate charge on retry

chore(deps): bump lodash to 4.17.21
```

## Semantic Versioning

Given a version `MAJOR.MINOR.PATCH`:

- **MAJOR** — incremented for incompatible/breaking API changes.
- **MINOR** — incremented for backwards-compatible new functionality.
- **PATCH** — incremented for backwards-compatible bug fixes.

## Pull Request Rules

1. All changes must go through pull requests — no exceptions for `main` or `develop`.
2. Minimum of one required approval before merge.
3. All CI checks must pass.
4. No direct commits to protected branches (`main`, `develop`).
5. The branch must be up to date with its target before merging.
6. Delete the branch after merge (both local and remote copies).

## Branch Protection Rules

Apply to both `main` and `develop`:

- Require pull request reviews before merging.
- Require status checks to pass before merging.
- Require branches to be up to date before merging.
- Include administrators in the restrictions (no bypassing rules with elevated permissions).
- No force pushes.
- No branch deletions.

## Release Process

1. Create a release branch from `develop`: `git checkout -b release/v1.2.0 develop`.
2. Bump version numbers in package manifests / changelogs.
3. Fix any release-specific issues (docs, last-minute bugs) — do not add new features.
4. Open a PR from the release branch into `main`.
5. After merge to `main`:
   - Tag the release: `git tag -a v1.2.0 -m "Release 1.2.0"` and push the tag.
   - Merge `main` back into `develop` so develop has the release commit and tag.
   - Delete the release branch.

## Hotfix Process

1. Create a hotfix branch from `main`: `git checkout -b hotfix/v1.2.1 main`.
2. Fix the production issue with the smallest possible change.
3. Bump the patch version.
4. Open a PR from the hotfix branch into `main`.
5. After merge to `main`:
   - Tag the release: `git tag -a v1.2.1 -m "Hotfix 1.2.1"` and push the tag.
   - Merge `main` back into `develop` so the fix isn't lost in the next release.
   - Delete the hotfix branch.

Wersje

RepozytoriumWynikLicencja
Ta strona · Mindrally/skills100Apache-2.0
zach-source/claude-plugins100MIT
AnDeVerin/spur-board90MIT
mgiovani/cc-arsenal90MIT

Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.

Migawka bazy z 13.11.2026 · wersja paczki 14e48c7c0a82 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100git-workflow-guide
    Prowadzi przez strategie gałęzi Git, nazewnictwo gałęzi i operacje scalania, w tym GitFlow, GitHub Flow, pull requesty i merge.
  • 100advanced-workflows
    Określa zespołowe przepływy Git: modele gałęzi, strategie scalania, konwencje commitów i automatyczne wersjonowanie.
  • 100github
    Obejmuje zarządzanie repozytorium GitHub i governance przepływu Git: strategie gałęzi (trunk-based, GitHub Flow, GitFlow), proces PR, reguły ochrony gałęzi, CODEOWNERS, semver, conventional commits, tagi i GitHub Releases.
  • 100git-workflow
    Zarządza przepływem pracy w Git: conventional commits, jakość commitów, gałęzie, worktree, GitFlow, changelog, wersjonowanie semantyczne, notatki wydań, backlog i integracja ze śledzeniem zgłoszeń.
  • 100git-release
    Tworzy wydania w wersjonowaniu semantycznym: generuje changelog z conventional commits, podnosi wersje w plikach (package.json, pyproject.toml, Cargo.toml), tworzy tagi i publikuje wydanie GitHub dla prostego przepływu na main.
  • 100git-branching-strategies-gitflow-trunk
    Wybiera i egzekwuje w zespole model gałęzi: trunk-based development czy Gitflow, z porównaniem obu.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.