mirror of
https://github.com/KazooTTT/kazoottt-blog-v2.git
synced 2025-06-23 10:41:30 +08:00
Update docs and sort content
This commit is contained in:
62
src/content/note/使用cursor生成git commit msg.md
Normal file
62
src/content/note/使用cursor生成git commit msg.md
Normal file
@ -0,0 +1,62 @@
|
||||
---
|
||||
title: 使用cursor生成git commit msg
|
||||
date: 2024-11-12
|
||||
author: KazooTTT
|
||||
tags:
|
||||
- 笔记
|
||||
finished: true
|
||||
published: true
|
||||
description: |-
|
||||
我是这个问题的解决方案:
|
||||
如何使用Git提交代码,请按照以下步骤操作:
|
||||
首先,开启终端输入git add暂存更改。
|
||||
然后,按下Command+K输入“git commit message”即可成功提交。
|
||||
slug: cursorgit-commit-msg
|
||||
toAstro: true
|
||||
date_created: 2025-01-04T11:44:53+08:00
|
||||
date_modified: 2025-01-22T13:39:19+08:00
|
||||
---
|
||||
|
||||
原文参考:
|
||||
|
||||
[x.com](https://x.com/0xinhua_zh/status/1855650777110630471)
|
||||
|
||||
```
|
||||
|
||||
太懒了不想写 Commit message,
|
||||
|
||||
@cursor_ai
|
||||
|
||||
帮你写👇:
|
||||
|
||||
1⃣ 按住 [Control ⌃ + `] 打开终端输入 git add 暂存更改。
|
||||
|
||||
2⃣ 按住 [Command ⌘ + K] 对话框输入 "git commit message" 然后提交请求,搞定!简洁明了。
|
||||
|
||||
```
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
我是这样,在暂存前使用 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>
|
||||
|
||||
```
|
||||
|
||||

|
Reference in New Issue
Block a user