Skip to content

Commit afb1284

Browse files
committed
docs: update git-commit-workflow.md with additional gitignore rules
Add more specific patterns to exclude from version control including cache files, logs and temporary files
1 parent 3806191 commit afb1284

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

prompts/templates/codemachine/workflows/git-commit-workflow.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,20 @@ You **MUST** analyze all changes and:
2222
You **MUST**:
2323
1. Ensure only essential folders are in `.gitignore` (create or update .gitignore if needed):
2424
- `.codemachine/memory`
25+
- `.codemachine/logs`
26+
- `.codemachine/prompts`
27+
- `.codemachine/agents`
28+
- `.codemachine/template.json`
2529
- `node_modules`
2630
2. Stage all relevant files using `git add <file>` or `git add .` for all changes
2731
3. **MUST NOT** stage files that contain secrets, credentials, or sensitive data
28-
32+
4. **MUST NOT** stage files that is not part of the project codebase or configuration files, e.g:
33+
* `*cache/`
34+
* `*.cache`
35+
* `__pycache__/`
36+
* `*.log`
37+
* `*.tmp`
38+
* `*.swp`
2939
### Step 4: Generate Commit Message
3040
You **MUST** create a commit message following this format:
3141

0 commit comments

Comments
 (0)