AGENT SKILL

dev分支切换

dev

切换到 dev 分支,并根据需要从 master 创建或重置该分支。

License 许可
MIT
最近更新
2026-05-15
Stars
★ 1
Forks
0

01 前言 Front Matter

name
dev
description
Switch to the dev branch, creating or resetting it from master as needed
allowed-tools
Bash(git *)
disable-model-invocation
true

02 资源文件 3

03 SKILL.md 正文

Switch to dev branch

Current state

!git branch --show-current !git status --short

Instructions

  1. If there are uncommitted changes, warn the user and stop.
  2. If already on dev and it's up to date with master, say so and stop.
  3. If a local dev branch exists:
    • Check if it has unmerged commits vs master. If yes, just switch to it.
    • If it's already merged (i.e. no commits ahead of master), reset it from master.
  4. If no local dev branch exists, create it from master:
    git checkout -b dev master
    git push -u origin dev
    
  5. Confirm the branch switch.

04 同仓库更多 Skills