Skip to main content

cursor-git-commit

Provide a pre-commit checklist and staging hygiene (review diffs, stage specific files, avoid common noise like dist/ or .env, and fix mistakes with reset/rm --cached/amend). Use when the user is about to commit, asks for a commit workflow, or needs help cleaning up staged files.

来源信息

仓库
go-go-golems/docmgr
最近来源活动
2026年1月2日 14:56
检测到的 SKILL.md 语言
英语
星标
13
分支
4

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
cursor-git-commit
description
Provide a pre-commit checklist and staging hygiene (review diffs, stage specific files, avoid common noise like dist/ or .env, and fix mistakes with reset/rm --cached/amend). Use when the user is about to commit, asks for a commit workflow, or needs help cleaning up staged files.
# Cursor Git Commit ## Overview Use a consistent commit workflow: inspect changes, stage intentionally, and avoid committing noise. ## Checklist (run before committing) 1. Inspect status: `git status --porcelain` 2. Review diffs: - unstaged: `git diff --stat` - staged: `git diff --cached --stat` 3. Stage intentionally: `git add path/to/file ...` 4. Verify staged set: `git diff --cached --name-only` 5. Commit and record hash: - `git commit -m "..."` then `git rev-parse HEAD` ## Fix common mistakes - Unstage one file: `git reset HEAD path/to/file` - Unstage everything: `git reset HEAD` - Remove noise already committed (keep on disk): `git rm --cached path/to/noise` then add to `.gitignore` and `git commit --amend --no-edit` ## Reference - Full checklist + ignore guidance: `references/git-commit-instructions.md`.
在 GitHub 查看