Skip to main content

pull-main

Switch to main branch and pull latest changes with prune. Use when the user wants to pull latest main, update main, or sync main with remote.

Quellinformationen

Repository
dyoshikawa/rulesync
Letzte Quellaktivität
22. Juli 2026 um 05:39
Erkannte Sprache von SKILL.md
Englisch
Sterne
1.592
Forks
171

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
pull-main
description
Switch to main branch and pull latest changes with prune. Use when the user wants to pull latest main, update main, or sync main with remote.
targets
["*"]
# Pull Main Switch to the `main` branch and pull the latest changes from `origin/main` while pruning stale remote-tracking references. ## Step 1: Inspect Current State Check the current branch: ```bash git branch --show-current ``` If already on `main`, note it for the final report. ## Step 2: Switch to Main Switch to the `main` branch: ```bash git switch main ``` ## Step 3: Pull with Prune Pull the latest changes from `origin/main` with `--prune` to remove stale remote-tracking branches: ```bash git pull --prune ``` ## Step 4: Report Result Summarize the operation: - Whether a branch switch occurred - Number of commits pulled (fast-forward or merge) - Any stale remote-tracking branches that were pruned
Auf GitHub ansehen