commit
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCommit
提交
Create git commits with conventional commit messages.
创建符合约定式提交规范(conventional commit)的Git提交信息。
Steps
步骤
- Run to review the full changes.
git --no-pager diff - Analyze the changes thoroughly to understand what was modified.
- Create a git commit with a clear, conventional commit message.
- 运行 查看完整更改内容。
git --no-pager diff - 全面分析更改,理解修改的内容。
- 创建带有清晰、符合约定式提交规范的Git提交信息。
Commit Guidelines
提交指南
Format
格式
- Title: Use conventional commit format ()
type: description - Body: Include brief description linking to the issue
- Language: Always write commits in English
- Newline: Use real newlines in commit message, not
\n - Resolve Issues: If applicable, include "Resolves issue #X" in the body to link the commit to an issue. Skip this if there is no relevant issue.
IMPORTANT: Don't use that's not working, use real newlines!!!
IMPORTANT: Don't use that's not working, use real newlines!!!
IMPORTANT: Don't use that's not working, use real newlines!!!
\n\n\n- 标题:使用约定式提交格式()
type: description - 正文:包含简要描述并关联相关问题
- 语言:提交信息始终使用英文书写
- 换行:在提交信息中使用真实换行,不要使用
\n - 关联问题:如果适用,在正文中添加“Resolves issue #X”以将提交与问题关联。若无相关问题则省略此步骤。
重要提示:不要使用 ,它无法生效,请使用真实换行!!!
重要提示:不要使用 ,它无法生效,请使用真实换行!!!
重要提示:不要使用 ,它无法生效,请使用真实换行!!!
\n\n\nCommit Command Template
提交命令模板
bash
git commit -m "chore: standardize linting, centralize guides, pin Python
- Introduce a root .flake8 config enforcing a 100-character line limit and ignoring specific style checks
- Remove inlined Python and Zsh guideline sections from copilot-instructions.md in favor of dedicated files
- Pin project Python version to 3.12 via a new .python-version file
- Rename docs/testing-guideline.md to docs/zsh-testing-guideline.md
- Refactor fetch_tags.py for consistent double-quoted strings, streamlined pattern definitions, logging calls, and URL assignment
Resolves issue #42"bash
git commit -m "chore: standardize linting, centralize guides, pin Python
- Introduce a root .flake8 config enforcing a 100-character line limit and ignoring specific style checks
- Remove inlined Python and Zsh guideline sections from copilot-instructions.md in favor of dedicated files
- Pin project Python version to 3.12 via a new .python-version file
- Rename docs/testing-guideline.md to docs/zsh-testing-guideline.md
- Refactor fetch_tags.py for consistent double-quoted strings, streamlined pattern definitions, logging calls, and URL assignment
Resolves issue #42"