Skip to main content

et-git

ET git workflow for preparing commits and reviewing changes. Use when checking git status or diff, filtering unrelated files, staging task-scoped changes, writing Chinese commit messages, or synchronizing with remotes using rebase instead of merge.

Jump to install

Source facts

Repository
egametang/ET
Last source activity
May 18, 2026 at 13:23
Detected SKILL.md language
Chinese
Stars
9,911
Forks
3,236

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

File Explorer
5 files

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
et-git
description
ET git workflow for preparing commits and reviewing changes. Use when checking git status or diff, filtering unrelated files, staging task-scoped changes, writing Chinese commit messages, or synchronizing with remotes using rebase instead of merge.
# et-git - ET Git 入口 > 红线:禁止直接使用 `git pull`。远端同步必须使用 `git pull --rebase`,或先 `git fetch` 再 `git rebase`。若与远端冲突,只能用 `rebase` 处理,禁止 `merge`。 ## 何时使用 - 准备提交本次改动 - 检查 `git status`、`git diff`、`git diff --staged` - 筛除日志、临时文件、自动生成文件和无关改动 - 编写中文 `commit message` - 拆分提交、整理暂存区、审查提交范围、与远端同步 ## 不要加载 - 只是改代码、跑测试、导出配置,还没进入交付阶段 - 只是查看项目背景或架构规范 ## 默认动作 1. 先看 `git status --short` 与 `git diff --stat`,确认影响范围。 2. 只保留本次任务相关改动,排除 `Logs/`、临时文件、无关自动生成文件和无关文件。 3. 如果本次任务需要提交 `.meta`、导出结果或生成代码,则保留对应文件,并说明原因。 4. 准备提交前,再看 `git diff` 与 `git diff --staged`,确认没有混入无关改动。 5. 提交信息统一使用中文,优先写成“动作 + 对象 + 影响范围/原因”。 6. 风险操作(拆分提交、回滚、`cherry-pick`、`rebase`)先说明影响再执行。 ## 优先入口 - `git status --short` - `git diff --stat` - `git diff` - `git diff --staged` - `git pull --rebase` - `git fetch` - `git rebase` ## 按需补读 - `references/et-git-workflow.md`:提交前检查、变更筛选、中文提交信息、rebase 规范与风险操作
View on GitHub