Przejdź do treści
Biblioteka skilli
Programowanie · Automatyzacja

git-merge

/git-merge

Scala gałęzie w git: funkcji do głównej linii, dev do głównej linii oraz scalenia wydań.

Repozytorium
konductor ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
27.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
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.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

Scala gałęzie w git: funkcji do głównej linii, dev do głównej linii oraz scalenia wydań.

Wyzwalacze z opisu

mergemerge branchmerge into mainlinerelease mergemerge dev
Oryginalny opis (EN)

MUST USE for merging branches. Feature branch into mainline, dev into mainline, release merges. Triggers: 'merge', 'merge branch', 'merge into mainline', 'release merge', 'merge dev'.

Jak działa

  1. Overview
  2. Usage
  3. Workflow
  4. Merge Flags
  5. Anti-Patterns
  6. Quick Reference
  7. Quality Gate
Sekcje z nagłówków SKILL.md, w oryginale · 104 linii, 485 słów
Podgląd SKILL.md
---
name: git-merge
description: "MUST USE for merging branches. Feature branch into mainline, dev into mainline, release merges. Triggers: 'merge', 'merge branch', 'merge into mainline', 'release merge', 'merge dev'."
version: 1.0.0
tags: [skill, git, merge, branch, mainline, release]
---

# Git Merge

## Overview

Merge a feature branch into mainline safely using `--no-ff --no-commit` for inspectable merge commits. This skill defines the standard 4-phase merge workflow that preserves branch history and allows pre-commit inspection.

## Usage

Use this skill when:

- Merging a feature branch into mainline
- Merging dev into mainline
- Performing release merges
- Any branch merge that should preserve history

Trigger words: `merge`, `merge branch`, `merge into mainline`, `release merge`, `merge dev`

## Workflow

### Phase 1: Merge mainline into feature branch first

Ensure the feature branch is up to date with mainline before merging back.

```bash
git switch mainline
git pull
git switch <feature_branch>
git merge --no-commit --no-ff mainline
# Fix any merge conflicts
git commit -m "Merging mainline into <feature_branch>"
git push
```

### Phase 2: Merge feature branch into mainline

```bash
git switch mainline
git pull
git merge --no-ff --no-commit <feature_branch>
# Fix any merge conflicts, verify build
git commit -m "Merging <feature_branch> into mainline"
git push
```

### Phase 3: Tag release (if applicable)

```bash
git tag v<version>
git push origin v<version>
```

### Phase 4: Clean up (optional)

```bash
git branch -d <feature_branch>        # delete local
git push -d origin <feature_branch>   # delete remote
```

## Merge Flags

| Flag          | Purpose                                                                         |
| ------------- | ------------------------------------------------------------------------------- |
| `--no-ff`     | Always create a merge commit (no fast-forward) — preserves branch history       |
| `--no-commit` | Stage the merge but don't commit — lets you inspect and build before committing |

## Anti-Patterns

1. **NEVER** fast-forward merge into mainline — always use `--no-ff`
2. **NEVER** merge into mainline without pulling latest first
3. **NEVER** skip merging mainline into feature branch first
4. **NEVER** force push to mainline

## Quick Reference

| Task                  | Command                                            |
| --------------------- | -------------------------------------------------- |
| Update mainline       | `git switch mainline && git pull`                  |
| Merge with inspection | `git merge --no-ff --no-commit <branch>`           |
| Tag release           | `git tag v<version> && git push origin v<version>` |
| Delete local branch   | `git branch -d <branch>`                           |
| Delete remote branch  | `git push -d origin <branch>`                      |

## Quality Gate

**CRITICAL (block merge):**

- Merging into mainline without `--no-ff` flag — branch history will be lost
- Merging into mainline without pulling latest first — risks overwriting others' changes
- Skipping Phase 1 (merging mainline into feature branch first) — conflicts should be resolved on the feature branch, not mainline
- Force pushing to mainline

**IMPORTANT (fix before proceeding):**

- Not using `--no-commit` flag — prevents pre-commit inspection of merge result
- Not verifying build passes before committing the merge
- Merge commit message doesn't describe what was merged

**SUGGESTION:**

- Tag releases after merging to mainline for traceability
- Clean up feature branches after successful merge to reduce clutter
- Verify tests pass on the feature branch after Phase 1 before proceeding to Phase 2

Wersje

RepozytoriumWynikLicencja
Ta strona · aws-solutions/konductor100Apache-2.0
lazygophers/ccplugin100AGPL-3.0
microsoft/hve-core90MIT
specterops/skills90Apache-2.0

Migawka bazy z 13.11.2026 · wersja paczki d6a92ae4c87a (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

  • 100merge-request-review
    Recenzuje merge request, pull request lub diff gałęzi przed włączeniem cudzej pracy do głównej linii kodu.
  • 100merge
    Przeprowadza UAT gałęzi funkcji i scala ją do dev, aby zweryfikować zmiany przed scaleniem lub wprowadzić pracę z worktree do dev.
  • 85pf-merge
    Scala zatwierdzony pull request linii prac do gałęzi głównej po zgodzie użytkownika, aktualizuje status linii i zamyka bramki budowy.
  • 86git-pr-merge
    Audytuje pull request, scala go do gałęzi głównej i synchronizuje lokalne środowisko, gdy zmiana jest gotowa.
  • 90git-push-secondary-merge-primary
    Zatwierdza i wypycha gałąź roboczą, scala ją z gałęzią główną i wypycha obie gałęzie.
  • 100worktree-merge
    Scala gałąź worktree z inną gałęzią przez git merge, domyślnie z --no-ff, na przykład przed jednym wspólnym PR.

Uwagi i zgłoszenia

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