news 2026/4/18 16:15:36

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 12:44:20

超详细版讲解CCS中C2000外设寄存器查看方法

从代码到硬件&#xff1a;手把手教你用CCS“看穿”C2000外设寄存器你有没有遇到过这样的情况&#xff1f;写好了ePWM初始化函数&#xff0c;信心满满地下载程序&#xff0c;结果示波器上就是没波形&#xff1b;ADC采样值一直在跳&#xff0c;时而为0、时而满量程&#xff0c;查…

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

YimMenu技术实现深度解析:GTA5游戏增强工具底层原理

1. 技术架构概览 【免费下载链接】YimMenu YimMenu, a GTA V menu protecting against a wide ranges of the public crashes and improving the overall experience. 项目地址: https://gitcode.com/GitHub_Trending/yi/YimMenu YimMenu作为一款基于C开发的GTA5游戏增强…

作者头像 李华
网站建设 2026/4/18 8:38:16

微信好友关系一键检测神器:精准识别谁悄悄删了你

微信好友关系一键检测神器&#xff1a;精准识别谁悄悄删了你 【免费下载链接】WechatRealFriends 微信好友关系一键检测&#xff0c;基于微信ipad协议&#xff0c;看看有没有朋友偷偷删掉或者拉黑你 项目地址: https://gitcode.com/gh_mirrors/we/WechatRealFriends 还在…

作者头像 李华
网站建设 2026/4/18 3:33:48

LangFlow负载均衡配置教程:应对高并发访问

LangFlow负载均衡配置教程&#xff1a;应对高并发访问 在AI应用开发日益普及的今天&#xff0c;越来越多企业开始构建基于大语言模型&#xff08;LLM&#xff09;的工作流系统。LangChain作为连接LLM与外部系统的主流框架&#xff0c;虽然功能强大&#xff0c;但其代码驱动的开…

作者头像 李华
网站建设 2026/4/18 3:33:42

手把手教你用Arduino Uno集成土壤湿度传感器

用Arduino Uno玩转土壤湿度监测&#xff1a;从零搭建一个智能花盆的“感知神经”你有没有过这样的经历&#xff1f;出差一周回来&#xff0c;心爱的绿植已经蔫头耷脑&#xff0c;只因没人知道它“渴了”&#xff1f;又或者&#xff0c;每天纠结要不要浇水&#xff0c;凭手感判断…

作者头像 李华
网站建设 2026/4/18 3:32:41

LangFlow开源贡献指南:如何参与项目开发

LangFlow开源贡献指南&#xff1a;如何参与项目开发 在大型语言模型&#xff08;LLM&#xff09;技术飞速演进的今天&#xff0c;越来越多开发者希望快速构建智能对话系统、知识问答引擎或自动化代理。然而&#xff0c;即便有如 LangChain 这样强大的框架支撑&#xff0c;编写…

作者头像 李华