Git Preferences and Workflow
This document outlines the git workflow preferences for this project.
Commit Workflow
When the user says "commit" or "commit the code", this means:
-
Stage all changes including:
- Modified files
- New files (untracked files)
- Deleted files
- Use
git add -Aorgit add .to stage everything
-
Create a commit with a descriptive message
- Use conventional commit format
- Include the AI assistant attribution
-
DO NOT PUSH unless explicitly instructed
- Only run
git commit, nevergit push - Wait for explicit instruction like "push the code" or "push to remote"
- Only run
Example Workflow
# When user says "commit the code"
git add -A # Stage all changes including new files
git status # Show what will be committed
git commit -m "feat: ..." # Create commit locally
# Only when user explicitly says "push"
git push origin main # Push to remoteImportant Notes
- Never push code automatically after committing
- Always stage new files when committing
- Use
git add -Ato ensure all changes are included - Wait for explicit push instructions from the user
AI Assistant Guidelines
AI assistants should:
- Always reference this document when handling git operations
- Stage ALL changes including new files when committing
- Never push unless explicitly told to
- Confirm what will be committed by showing git status