news 2026/4/20 17:55:11

GitHub Copilot 一键生成中文commit提示语规则设置

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
GitHub Copilot 一键生成中文commit提示语规则设置

文章目录

  • 1. 设置规则
  • 2. 效果

1. 设置规则

以idea为例:setting->Tools->GitHub Copilot->Customizations

复制以下规则到git-commit-instructions.md

please generate a commit message with Chinese. Make sure it includes an accurate and informative subject line that succinctly summarizes the key points of the changes, the response must only have commit message content and must have blank line in message template. Below is the commit message template: <type>(<scope>): <subject> // blank line <body> // blank line <footer> The Header is mandatory, while the Body and Footer are optional. Regardless of which part, no line should exceed 72 characters (or 100 characters). This is to avoid automatic line breaks affecting aesthetics. Below is the type Enum: - feat: new feature - fix: bug fix - docs: documentation - style: formatting (changes that do not affect code execution) - refactor: refactoring (code changes that are neither new features nor bug fixes) - test: adding tests - chore: changes to the build process or auxiliary tools The body section is a detailed description of this commit and can be split into multiple lines. Here's an example: More detailed explanatory text, if necessary. Wrap it to about 72 characters or so. Further paragraphs come after blank lines. - Bullet points are okay, too - Use a hanging indent

2. 效果

以上为个人学习分享,如有问题,欢迎指出:)

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/4/17 21:24:14

手把手教你完成工控机JLink接线全过程

手把手带你搞定工控机JLink接线&#xff1a;从识别到连通的完整实战指南 你有没有遇到过这样的场景&#xff1f;一台现场部署的工控机突然“变砖”&#xff0c;串口无响应&#xff0c;网络不通&#xff0c;远程升级失败……一切常规手段都失效了。这时候&#xff0c;唯一能救场…

作者头像 李华
网站建设 2026/4/18 17:34:11

Mac平台NTFS文件系统读写技术深度解析

Mac平台NTFS文件系统读写技术深度解析 【免费下载链接】Free-NTFS-for-Mac Nigate&#xff0c;一款支持苹果芯片的Free NTFS for Mac小工具软件。NTFS R/W for macOS. Support Intel/Apple Silicon now. 项目地址: https://gitcode.com/gh_mirrors/fr/Free-NTFS-for-Mac …

作者头像 李华
网站建设 2026/4/20 11:52:19

LangFlow WebSocket通信机制详解

LangFlow WebSocket通信机制详解 在构建AI应用的今天&#xff0c;开发者越来越依赖可视化工具来快速搭建和调试复杂的语言模型工作流。LangChain虽然功能强大&#xff0c;但其代码驱动的方式对非专业程序员来说门槛较高。正是在这样的背景下&#xff0c;LangFlow 应运而生——它…

作者头像 李华
网站建设 2026/4/17 19:45:50

OpenCore配置工具深度解析:从技术原理到实战应用的艺术

OpenCore配置工具深度解析&#xff1a;从技术原理到实战应用的艺术 【免费下载链接】OpenCore-Configurator A configurator for the OpenCore Bootloader 项目地址: https://gitcode.com/gh_mirrors/op/OpenCore-Configurator 作为一名长期奋战在黑苹果配置前线的技术专…

作者头像 李华
网站建设 2026/4/18 9:45:22

Mac NTFS读写完整指南:免费开源工具轻松解决跨平台难题

Mac NTFS读写完整指南&#xff1a;免费开源工具轻松解决跨平台难题 【免费下载链接】Free-NTFS-for-Mac Nigate&#xff0c;一款支持苹果芯片的Free NTFS for Mac小工具软件。NTFS R/W for macOS. Support Intel/Apple Silicon now. 项目地址: https://gitcode.com/gh_mirror…

作者头像 李华
网站建设 2026/4/18 15:02:31

社交媒体数据采集实战:从用户评论到商业洞察的智能分析工具

你是否曾面临这样的困境&#xff1a;想要了解用户对某个热门内容的真实反馈&#xff0c;却苦于无法批量获取评论数据&#xff1f;&#x1f914; 在数据驱动决策的时代&#xff0c;社交媒体评论中蕴含着宝贵的用户洞察&#xff0c;但手动采集既耗时又容易遗漏重要信息。 【免费下…

作者头像 李华