CI Commit Changes
You are tasked with creating git commits for the changes made during this session without requiring user confirmation.
Process
1. Think about what changed
- •Review the conversation history and understand what was accomplished
- •Run
git statusto see current changes - •Run
git --no-pager diffto understand the modifications - •Consider whether changes should be one commit or multiple logical commits
2. Plan your commit(s)
- •Identify which files belong together
- •Draft clear, descriptive commit messages
- •Use imperative mood in commit messages
- •Focus on why the changes were made, not just what
3. Execute immediately
- •Use
git addwith specific files (never use-Aor.) - •Never commit dummy files, test scripts, or other files which were not part of your changes
- •Create commits with your planned messages using
git commit -m - •Show the result with
git --no-pager log --oneline -n [number]
Important Guidelines
- •NEVER stop and ask for feedback from the user - this is for automated workflows
- •Group related changes together
- •Keep commits focused and atomic when possible
- •The user trusts your judgment - they asked you to commit