Files
opencode/command/git-status.md
Voson 5a05d5ab53 chore: 重构 OpenCode 命令和技能文档体系
- 新增:统一的 git 命令文档(add/commit/push/pull 等)
- 新增:整合的 Gitea 技能文档(API、运行器、工作流等)
- 新增:工作流模板(Android、Go、Node.js 等)
- 移除:已弃用的旧命令脚本和发布脚本
- 改进:.gitignore 添加敏感文件保护规则
- 改进:AGENTS.md 完善了开发规范和示例

此次重组统一了命令和技能的文档结构,便于后续维护和扩展。
2026-01-13 00:27:21 +08:00

891 B
Raw Blame History

description
description
Check git working directory status and file changes

git-status

Check current git repository status and display file changes in a clear format.

What It Does

  • Shows current branch
  • Lists changed files (unstaged and staged)

Steps

Execute the following commands in parallel:

# Current branch
git branch --show-current

# Repository status
git status

# List changed files only
echo "=== Unstaged Changes ==="
git diff --name-only

echo "=== Staged Changes ==="
git diff --cached --name-only

Output Format

Present the information in Chinese with clear sections:

当前分支main

未暂存的文件 (3):
- src/index.js
- src/utils.js
- README.md

已暂存的文件 (2):
- package.json
- src/config.js

Use Cases

  • Quick status check before committing
  • Review what files have changed
  • Check if you're on the correct branch