commit
Generate a commit message based on current changes and commit all staged and unstaged changes to git
소스 정보
- 저장소
- ok-oldking/ok-script
- 최근 소스 활동
- 2026년 4월 8일 09:18
- 감지된 SKILL.md 언어
- 영어
- 스타
- 762
- 포크
- 215
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
SKILL.md 표시 중
SKILL.md
소스 지침 · 읽기 전용 미리보기- name
- commit
- description
- Generate a commit message based on current changes and commit all staged and unstaged changes to git
# Commit Changes
When instructed to commit changes, follow these steps:
## 1. Check for uncommitted changes
// turbo
```powershell
git status --short
```
If there are no uncommitted changes (no output from the command above), tell the user "No uncommitted changes to commit." and **STOP**.
## 2. Review changes and generate a commit message
// turbo
```powershell
git diff --stat
```
// turbo
```powershell
git diff
```
Review the output of `git diff` and `git diff --stat`. Write a concise, descriptive commit message summarizing **only these uncommitted changes**. The message should:
- Use imperative mood (e.g. "Add …", "Fix …", "Refactor …")
- Be a single line for simple changes.
- For complex changes, use a single summary line, followed by a blank line and bullet points.
## 3. Stage and commit all changes
// turbo
```powershell
git add -A
```
// turbo
```powershell
git commit -m "<generated commit message>"
```
Replace `<generated commit message>` with the message you wrote in step 2.
## 4. Report
Tell the user:
- The commit message used.
- A brief summary of what was committed.
GitHub에서 보기