Files
kazoottt-blog/src/content/post/编程/git/使用cursor生成git commit msg.md
2024-11-23 14:47:29 +08:00

57 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 使用cursor生成git commit msg
date: 2024-11-12T00:00:00.000Z
author: KazooTTT
tags:
- 笔记
finished: true
published: true
description: null
slug: cursorgit-commit-msg
category: 编程
---
原文参考:
[x.com](https://x.com/0xinhua_zh/status/1855650777110630471)
```
太懒了不想写 Commit message
@cursor_ai
帮你写👇:
1⃣ 按住 [Control ⌃ + `] 打开终端输入 git add 暂存更改。
2⃣ 按住 [Command ⌘ + K] 对话框输入 "git commit message" 然后提交请求,搞定!简洁明了。
```
![IMG-20241112141124094](https://pictures.kazoottt.top/2024/11/20241112-5ddd01234e9ab24764328e01034144e8.png)
---
我是这样,在暂存前使用 command
[x.com](https://x.com/FaiChou_zh/status/1855775123271459192)
```
@Commit (Diff of Working State)
Please generate a commit message with English. Below is the commit message template: <type>(<scope>): <subject>
```
```
@Commit (Diff of Working State)
Please generate a commit message with CN. Below is the commit message template: <type>(<scope>): <subject>
```
![Pasted image 20241112141218](https://pictures.kazoottt.top/2024/11/20241112-906ab65b44b91d7ef7b240ddd76167f9.png)