Type: entity
Confidence: 0.60
Created: 2026-04-25
Updated: 2026-04-25
Tags: claude-codeslash-commandgitAI工程

commit

概述

Claude Code中的commit斜杠命令,用于创建带上下文的Git提交。

关键内容

  1. 功能特性
  2. 自动获取当前git状态
  3. 显示当前git diff
  4. 展示当前分支信息
  5. 列出最近的提交记录

  6. 使用方式

  7. 可接受提交消息作为参数
  8. 如未提供参数,则根据变更自动生成符合约定式提交格式的消息
  9. 支持多种提交类型:feat、fix、docs、refactor、test、chore等

  10. 允许的工具

  11. git add
  12. git status
  13. git commit
  14. git diff

来源

相关