Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计未展示

version-control版本控制

Agent Skill

version-control 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

636

周安装

26

GitHub Stars

公开资料未说明

下载量

204
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:version-control(版本控制)
来源仓库:https://github.com/outfitter-dev/agents
仓库路径:skills/version-control
安装命令:
npx skills add outfitter-dev/agents --skill "version-control"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add outfitter-dev/agents --skill "version-control"

简介

version-control 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于需要快速定位候选结果的关键词搜索、任务场景匹配或来源线索筛选等研究检索类需求。
  • 通过 npx skills add outfitter-dev/agents --skill "version-control" 安装,具体用法请参考来源仓库 README。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

GitButler Version Control

Virtual branches → parallel development → post-hoc organization.

<when_to_use>

  • Multiple unrelated features in same workspace simultaneously
  • Multi-agent concurrent development (agents in same repo)
  • Exploratory coding where organization comes after writing
  • Post-hoc commit reorganization needed
  • Visual organization preferred (GUI + CLI)

NOT for: projects using Graphite (incompatible models), simple linear workflows (use plain git), when PR submission automation required end-to-end (use Graphite instead)

</when_to_use>

<core_concepts>

ConceptDescription
Virtual branchesMultiple branches applied simultaneously to working directory
Integration branchgitbutler/workspace tracks virtual branch state — never touch directly
Target branchBase branch (e.g., origin/main) all work diverges from
File assignmentAssign file hunks to branches with but rub
StacksDependent branches via --anchor flag
OplogOperations log for undo/restore — your safety net

Key difference from Git: All branches visible at once. Organize files to branches after editing. No checkout.

</core_concepts>

Quick Start

# Initialize (one time)
but init

# Create branch
but branch new feature-auth

# Make changes, check status for file IDs
but status
# ╭┄00 [Unassigned Changes]
# │   m6 A src/auth.ts

# Assign file to branch using ID
but rub m6 feature-auth

# Commit
but commit feature-auth -m "feat: add authentication"

Core Loop

  1. Create: but branch new <name>
  2. Edit: Make changes in working directory
  3. Check: but status to see file IDs
  4. Assign: but rub <file-id> <branch-name>
  5. Commit: but commit <branch> -m "message"
  6. Repeat: Continue with other features in parallel

The Power of but rub

Swiss Army knife — combines entities to perform operations:

SourceTargetOperation
File IDBranchAssign file to branch
File IDCommitAmend commit with file
Commit SHABranchMove commit between branches
Commit SHACommit SHASquash (newer into older)

<parallel_development>

Parallel Feature Development

# Create two independent features
but branch new feature-a
but branch new feature-b

# Edit files for both (same workspace!)
echo "Feature A" > feature-a.ts
echo "Feature B" > feature-b.ts

# Assign to respective branches
but rub <id-a> feature-a
but rub <id-b> feature-b

# Commit independently
but commit feature-a -m "feat: implement feature A"
but commit feature-b -m "feat: implement feature B"

# Both branches exist, zero conflicts, same directory

Multi-Agent Workflows

Multiple AI agents working concurrently in same repo:

# Agent 1
but branch new agent-1-feature
# ... make changes ...
but commit agent-1-feature -m "feat: add feature X"

# Agent 2 (simultaneously, same workspace)
but branch new agent-2-bugfix
# ... make changes ...
but commit agent-2-bugfix -m "fix: resolve issue Y"

See multi-agent skill for advanced patterns

</parallel_development>

Completing Work

CRITICAL: GitButler CLI lacks native commands for merging to main or creating PRs. Use git for integration.

# 1. Snapshot for safety
but snapshot --message "Before integrating feature-auth"

# 2. Switch to main
git checkout main

# 3. Update main
git pull origin main

# 4. Merge virtual branch
git merge --no-ff refs/gitbutler/feature-auth -m "feat: add auth"

# 5. Push
git push origin main

# 6. Clean up and return
but branch rm feature-auth
git checkout gitbutler/workspace

See complete-branch skill for full guided workflow

Essential Commands

CommandPurpose
but initInitialize GitButler in repository
but statusView changes and file IDs
but logView commits on active branches
but branch new <name>Create virtual branch
but branch new <name> --anchor <parent>Create stacked branch
but rub <source> <target>Assign/move/squash/amend
but commit <branch> -m "msg"Commit to branch
but commit <branch> -o -m "msg"Commit only assigned files
but publishPublish branches to forge (GitHub)
but forge authAuthenticate with GitHub
but absorbAmend uncommitted changes
but oplogShow operation history
but undoUndo last operation
but snapshot --message "msg"Create manual snapshot
but base updateUpdate workspace with latest base
but.Open GitButler GUI for current repo

Global flags come first: but --json status ✓ | but status --json

<ai_integration>

AI Agent Integration

Three integration methods:

1. Agents Tab (Claude Code, recommended)

  • GUI-based launcher tied to branches
  • Automatic commit management per session
  • Parallel agent execution with branch isolation

2. Lifecycle Hooks

{
  "hooks": {
    "PreToolUse": [{"matcher": "Edit|MultiEdit|Write", "hooks": [{"type": "command", "command": "but claude pre-tool"}]}],
    "PostToolUse": [{"matcher": "Edit|MultiEdit|Write", "hooks": [{"type": "command", "command": "but claude post-tool"}]}],
    "Stop": [{"matcher": "", "hooks": [{"type": "command", "command": "but claude stop"}]}]
  }
}

3. MCP Server

but mcp  # Start MCP server for agent integration

</ai_integration>

ALWAYS:

  • Use but for all work within virtual branches
  • Use git only for integrating completed work into main
  • Return to gitbutler/workspace after git operations: git checkout gitbutler/workspace
  • Snapshot before risky operations: but snapshot --message "..."
  • Assign files immediately after creating: but rub <id> <branch>
  • Check file IDs with but status before using but rub

NEVER:

  • Use git commit on virtual branches — breaks GitButler state
  • Use git add — GitButler manages index
  • Use git checkout on virtual branches — no checkout needed
  • Push gitbutler/integration to remote — it's local-only
  • Mix Graphite and GitButler in same repo — incompatible models
  • Pipe but status directly — causes panic; capture output first: status_output=$(but status) echo "$status_output" | head -5

Quick Troubleshooting

SymptomCauseSolution
Branch not showing in but logNot trackedbut track --parent <parent>
Files not committingNot assignedbut rub <file-id> <branch>
Conflicts in workspaceAll branches appliedResolve in files or reassign hunks
Mixed git/but broke stateUsed git commandsbut base update or reinit
Broken pipe panicOutput consumed partiallyCapture output to variable first
Filename with dash failsInterpreted as rangeUse file ID from but status
Lost workNeed recoveryUse but oplog and but undo

Recovery Pattern

# View recent operations
but oplog

# Undo last operation
but undo

# Or restore to specific snapshot
but restore <snapshot-id>

# If workspace corrupted
but base update
# Last resort: but init

See references/reference.md for comprehensive troubleshooting

GitButler vs Graphite

AspectGraphiteGitButler
ModelLinear stacks of physical branchesVirtual branches, optional stacking
Branch switchingRequired (gt up/gt down)Never needed (all applied)
PR submissiongt submit --stack✗ CLI only (use gh or GUI)
Multi-agentSerial (checkout required)Parallel (virtual branches)
Post-hoc organizationDifficultbut rub trivial
CLI completenessFull automationPartial (missing PR/push)

Choose GitButler for: Exploratory work, multi-agent, post-hoc organization Choose Graphite for: Production automation, PR submission, terminal-first

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.82%
按下载量换算57

windsurf

23.96%
按下载量换算49

OpenCode

19.95%
按下载量换算41

Cursor

11.78%
按下载量换算24

Codex

8.24%
按下载量换算17

Antigravity

3.17%
按下载量换算6

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add outfitter-dev/agents --skill "version-control" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills