Skip to main content

git-workflow

Use when committing code, creating PRs, managing branches, or resolving git conflicts. Triggers on git commit, git push, git status, git diff, git stash, git revert, cherry-pick, merge conflict, pull request, PR, create PR, squash merge, conventional commit, branch, feature branch, gh pr, git log, rebase, upstream, origin, stage files, git add.

Quellinformationen

Repository
george11642/george-plugins
Letzte Quellaktivität
11. März 2026 um 22:42
Erkannte Sprache von SKILL.md
Englisch
Sterne
2
Forks
0

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
git-workflow
description
Use when committing code, creating PRs, managing branches, or resolving git conflicts. Triggers on git commit, git push, git status, git diff, git stash, git revert, cherry-pick, merge conflict, pull request, PR, create PR, squash merge, conventional commit, branch, feature branch, gh pr, git log, rebase, upstream, origin, stage files, git add.
# Git Workflow ## Commit Convention ``` type(scope): subject (max 72 chars) - bullet body for non-trivial changes Co-Authored-By: Claude <noreply@anthropic.com> ``` Types: `feat`, `fix`, `chore`, `refactor`, `test`, `docs`, `perf` Scopes: use project-appropriate scopes (check project's CLAUDE.md) ## Branch Strategy - `main` — production, always deployable - `feat/description` — feature branches - `fix/description` — bug fix branches ## Commands | Task | Command | |------|---------| | Status | `git status` | | Stage specific files | `git add file1 file2` (never `git add .` for safety) | | Commit | `git commit -m "type(scope): message"` | | Push | `git push -u origin branch-name` | | Create PR | `gh pr create --title "..." --body "..."` | | View PR | `gh pr view [number]` | | Merge PR | `gh pr merge [number] --squash` | ## Safety - Never force-push to main - Never `git add .` (stage specific files) - Never skip hooks (`--no-verify`) - Always `git stash` before risky operations - Resolve conflicts manually, never `--ours`/`--theirs` blindly
Auf GitHub ansehen