Skip to content
FunCoding

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.

Star
929
License
MIT
Last commit
Sep 22, 2026

Packages/cn.etetet.harness/skills/et-git/SKILL.md

View on GitHub

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 规范与风险操作

Similar Skills

using-git-worktrees

OBobra/superpowers298k2,631 new stars in the last 7 days

verification-before-completion

OBobra/superpowers298k2,631 new stars in the last 7 days

finishing-a-development-branch

OBobra/superpowers298k2,631 new stars in the last 7 days

wizard

MAmattpocock/skills288k10,178 new stars in the last 7 days

git-guardrails-claude-code

MAmattpocock/skills288k10,178 new stars in the last 7 days

triage

MAmattpocock/skills288k10,178 new stars in the last 7 days