Skip to content

Git Auto Commit Prompt V4.1 Lite ​

A prompt that automatically creates appropriate commit messages by analyzing Git diffs and automates the entire Git operation from branch creation to merge. Avoids commands that enter interactive mode.

Intended Use ​

  • Automatically create appropriate commit messages by analyzing Git diffs
  • Automate entire Git operations from branch creation to merge
  • Achieve detailed commit division to clearly record work history
  • Avoid interactive mode for automation

Prompt Text ​

text
# Git Diff Analysis Auto-Commit Prompt V4.1 lite

Execute the following process:

Analyze the results of git status and git diff, and automatically execute appropriate branch creation, commit, and merge operations.
However, do not execute commands that would enter interactive mode.

## Development Flow Steps

1. 🔍 **Check change status before starting work**

git status git diff


2. 🌿 **Check/create/switch to develop branch**

Check if develop branch exists ​

git branch -a | grep develop

Create develop branch if it doesn't exist ​

git checkout -b develop git push origin develop

Switch to develop branch and update if it exists ​

git checkout develop git pull origin develop


3. 🌿 **Create a working branch**
- Suggest an appropriate English branch name based on the changes identified above
- Do not include issue numbers

git checkout -b feature/[feature-name]-[date]


4. 💻 **Make fine-grained commits based on changes**
- Based on changes confirmed with git status and git diff, **commit in detail for each work difference**
- **Split by work units** such as feature additions, fixes, refactoring, etc. so that anyone viewing later can understand the work history
- Describe content in Japanese so it's clear when viewed later
- Add emojis to improve readability
- Include only related changes in a single commit; separate unrelated changes into different commits
- Use bullet points of about 3 lines to describe change content

Example: Split like file addition → feature implementation → style adjustment ​

git add [related-files] git commit -m "✨ [specific change content in Japanese]"

Commit next work unit ​

git add [next related files] git commit -m "🔧 [next change content in Japanese]"


5. 🔍 **Check for missing commits**

git status git diff


6. 🔄 **Merge to develop branch**

git checkout develop git merge --no-ff feature/[feature-name]-[date] -m "🔀 Merge: [task name]" git push origin develop


7. 🗑️ **Delete working branch**

git branch -d feature/[feature-name]-[date]

How to Use ​

  1. Paste the prompt to AI
  2. Execute after work is completed in the Git repository
  3. Automatically executes from branch creation to merge

Input Example ​

No special input required. Simply execute in a Git repository with changes, and diffs will be automatically analyzed to create appropriate commits.

Output Example ​

  • Branch creation with appropriate branch name
  • Detailed commits according to work content (with emojis)
  • Merge to develop branch
  • Deletion of working branch

Differences from V4.0 Lite ​

  • Explicitly avoids commands that enter interactive mode

Notes ​

  • All commands are executed non-interactively to avoid interactive mode
  • Commits are divided by feature units to clearly record work history