update-branch
/update-branch
Aktualizuje gałąź do najnowszej wersji domyślnej gałęzi przez merge, gdy PR jest w tyle albo ma konflikty.
- Autor
- kmedi355 ↗
- Repozytorium
- team-git-skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 11.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Aktualizuje gałąź do najnowszej wersji domyślnej gałęzi przez merge, gdy PR jest w tyle albo ma konflikty.
Wyzwalacze z opisu
Oryginalny opis (EN)
Bring your branch up to date with the latest default branch (or the teammate branch it's based on) by merging it in. Use when someone says "my branch is out of date", "get the latest changes", "sync with main", or a PR says it's behind or has conflicts.
Jak działa
- 0. Context
- 1. Nothing uncommitted
- 2. Merge the latest in
- 3. Conflicts?
- 4. Push
Podgląd SKILL.md
--- name: update-branch description: Bring your branch up to date with the latest default branch (or the teammate branch it's based on) by merging it in. Use when someone says "my branch is out of date", "get the latest changes", "sync with main", or a PR says it's behind or has conflicts. --- # Bring my branch up to date Guide: if the repo has a CONTRIBUTING.md, the matching section is "My branch is out of date with main". The steps below work without it. ## 0. Context - **Default branch** (`<default>`): `gh repo view --json defaultBranchRef -q .defaultBranchRef.name`, falling back to `git symbolic-ref --short refs/remotes/origin/HEAD` (drop the `origin/`). If both fail, ask. - **What to update from** (`<base>`): if the branch has an open PR, its target (`gh pr view --json baseRefName -q .baseRefName`); otherwise `<default>`. - **Current branch:** `git branch --show-current`. If it's `<default>`, just `git pull` and stop. ## 1. Nothing uncommitted If `git status` shows uncommitted changes, commit them first with `save-and-push` (or ask whether to stash them). ## 2. Merge the latest in ```bash git fetch origin <base> git merge origin/<base> ``` Use merge, not rebase: the branch is usually already pushed, and rebasing would need a force-push. ## 3. Conflicts? If it reports conflicts, switch to the `resolve-conflict` skill. ## 4. Push If it merged cleanly, `git push` so the PR updates.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · kmedi355/team-git-skills | 100 | MIT |
| nebius/nebius-ps-services | 95 | Apache-2.0 |
Migawka bazy z 13.11.2026 · wersja paczki 1c6c41a765df (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
- 100sync
Aktualizuje bieżącą gałąź funkcji o najnowsze zmiany z gałęzi bazowej: domyślnie rebase, a na prośbę merge. - 100update-from-upstream-main
Aktualizuje bieżącą gałąź Remotion najnowszym kanonicznym mainem: scala main do gałęzi funkcji lub PR bez przepisywania opublikowanej historii. - 100git-branch-sync
Pobiera najnowszą gałąź bazową i wykonuje rebase bieżącej gałęzi, czytelnie pokazując konflikty, gdy gałąź jest nieaktualna względem bazy. - 100start-work
Zaczyna nowe zadanie na świeżej gałęzi z najnowszej gałęzi domyślnej, zanim zostaną wprowadzone zmiany. - 100open-pr
Doprowadza gotową gałąź do scalenia: otwiera pull request do domyślnej gałęzi, a po recenzji koleżanki lub kolegi scala go i sprząta. - 95mb-update
Aktualizuje Main Branch do najnowszej wersji, sprawdza, czy użytkownik ma aktualną wersję i pobiera nowe wydania.