返回 Skill 列表
extension
分类: 开发与工程无需 API Key

gitwhat

简洁的git工作区快照,用于当前目录。当被要求显示当前分支、当前工作目录、仓库根目录、当前目录是否为工作树、本地是否有未提交更改,或者其它工作树是否有未提交更改时使用。

person作者: jakexiaohubgithub

Gitwhat

Overview

Provide a short, formatted git status snapshot for the current working directory and any sibling worktrees.

Quick start

  • Run scripts/gitwhat.sh from the target directory.
  • If not inside a git repo, report the cwd and exit.

Output fields

  • CWD
  • Branch (or detached@<sha>)
  • Repo root
  • Worktree (yes/no + name or main)
  • Status (clean/dirty with counts)
  • Other worktrees (clean/dirty per worktree)

Notes

  • Keep output compact and use the script output as-is unless the user asks for more detail.
  • Do not use network calls; rely on local git commands.