git-pull
Use when pulling remote changes with an explicit merge or rebase strategy choice.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Use when pulling remote changes with an explicit merge or rebase strategy choice.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Use when designing component interaction specs with visual states, transitions, and accessibility requirements. Covers state matrices, responsive behavior, ARIA compliance, and content constraints. Do not use for multi-step user journey mapping (use journey-mapping).
Use when mapping complete user journeys through multi-step flows, onboarding sequences, or feature workflows. Covers entry points, happy paths, alternate paths, error states, friction analysis, and delight opportunities. Do not use for individual component interaction specs (use interaction-design).
Use when analyzing an existing codebase for architecture, tech stack, conventions, and infrastructure. Covers project structure mapping, data model discovery, integration point cataloging, and constraint identification. Do not use for schema changes (use schema-design) or API contract definition (use api-design).
Use when designing documentation architecture for a project or team. Covers audience mapping, Diataxis framework classification, onboarding path design, format and location decisions, documentation testing, and maintenance scheduling. Do not use for recording individual architecture decisions (use adr-template) or creating versioned changelogs (use changelog-design).
Use when auditing codebase patterns or evaluating proposed changes for convention consistency. Covers file naming, component patterns, data fetching, state management, and type conventions. Do not use for test plan design or coverage targets (use testing-strategy).
Use when classifying data elements by sensitivity tier and defining per-tier handling requirements. Covers data inventory, sensitivity classification, PII flow mapping, encryption and masking specifications, and cross-boundary transfer documentation. Do not use for regulatory gap analysis (use compliance-review) or audit logging design (use audit-trail-design).
| name | git-pull |
| description | Use when pulling remote changes with an explicit merge or rebase strategy choice. |
| triggers | ["git pull","get latest","pull changes","update branch"] |
| version | 1.0.0 |
| user_invocable | true |
--rebase, --merge, --ff-only accepted. Reject arbitrary strings or shell metacharacters.Pull changes from remote with configurable strategy (merge or rebase).
/git-pull # Pull with default strategy (from git config)
/git-pull --rebase # Pull with rebase
/git-pull --merge # Pull with merge
/git-pull --ff-only # Only fast-forward, fail if not possible
# Check for uncommitted changes
if ! git diff --quiet || ! git diff --cached --quiet; then
echo "You have uncommitted changes. Options:"
echo " 1. /git-stash - Stash changes and continue"
echo " 2. /commit - Commit changes first"
echo " 3. Discard changes: git checkout ."
exit 1
fi
# Verify we have a remote tracking branch
if ! git rev-parse --abbrev-ref --symbolic-full-name @{u} >/dev/null 2>&1; then
echo "No upstream tracking branch configured."
echo "Set with: git branch --set-upstream-to=origin/$(git branch --show-current)"
exit 1
fi
git fetch --prune
# Count commits behind
BEHIND=$(git rev-list --count HEAD..@{u})
AHEAD=$(git rev-list --count @{u}..HEAD)
echo "Local is $BEHIND commits behind, $AHEAD commits ahead"
Based on strategy requested:
# Default (from git config)
git pull
# With rebase
git pull --rebase
# With merge (explicit)
git pull --no-rebase
# Fast-forward only
git pull --ff-only
Show what was pulled and any issues.
Pulling from origin/main...
Pulled 3 commits:
abc1234 Fix authentication bug
def5678 Update dependencies
ghi9012 Improve error handling
Files updated:
src/auth/login.ts
package.json
package-lock.json
Branch is now up to date with origin/main.
Cannot fast-forward: local and remote have diverged.
Local has 2 commits not on remote:
xyz7890 Add new feature
uvw1234 Fix typo
Remote has 3 commits not local:
abc1234 Other work
def5678 More changes
ghi9012 Latest commit
Options:
/git-pull --rebase # Rebase your commits on top
/git-pull --merge # Create a merge commit
/git-merge-main # Merge main into your branch
Pull resulted in conflicts!
Conflicting files:
- src/components/Header.tsx
- src/styles/theme.css
Next steps:
/git-conflicts # Get help resolving conflicts
git merge --abort # Or abort and try a different approach
| Scenario | Recommended Strategy |
|---|---|
| Feature branch, no shared commits | --rebase (cleaner history) |
| Shared branch, collaborating | --merge (preserve history) |
| Main branch, simple update | --ff-only (safest) |
| Unsure | Default (uses git config) |
/git-sync first to preview changes before pulling/git-stash to save uncommitted work before pulling/git-conflicts if pull results in conflicts/git-abort to cancel a failed merge/rebase