Skip to content

Commit f79e80b

Browse files
committed
docs: update git commit procedure in cursor rules
1 parent d8ed027 commit f79e80b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.cursor/rules/git.mdc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ alwaysApply: true
66
# Commit creation
77

88
- When asked to "commit":
9-
1. Check staged files using `git diff --staged` and create a commit message using *only* the staged files.
9+
1. Check staged files using `git --no-pager diff --staged` and create a commit message using *only* the staged files.
1010
- Once the message is ready, directly propose the commit command to the user.
1111
2. If no files are staged, check the differences using `git status`, then stage files sequentially based on the following commit granularity before committing:
1212
- Separate commits by package.
@@ -25,10 +25,5 @@ alwaysApply: true
2525
- `refactor`
2626
- `test`
2727
- `chore`
28-
- You must use the following scopes:
29-
- Each package name (without namespace)
30-
- `repo`
31-
- `deps`
32-
- `github`
3328
- The message body's lines must not be longer than 100 characters
3429
- The subject must not be sentence-case, start-case, pascal-case, upper-case

0 commit comments

Comments
 (0)