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.

来源信息

仓库
dyoshikawa/rulesync
最近来源活动
2026年7月22日 05:39
检测到的 SKILL.md 语言
英语
星标
1,577
Forks
168

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
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
在 GitHub 查看