eTechtips

Tech Tips and Insights

AI: A better way to commit after a prompt

/ ,

I previously found a way to commit after each change to my projects but it only left log time stamp for each commit. This was not as helpful as I would have liked. So I started researching other ways to make the commit happen after each prompt and capture the changes.

So adding the following to the .config/opencode/AGENTS.md will make a new commit and describe all the changes made during that prompts commit.

## Git Workflow Rule
- After completing any file modification requested by prompt, you MUST stage all modified files (`git add -A`) and create a concise, descriptive `git commit` summarizing the changes before finishing your turn.
- Never amend previous commits; always create a new commit per prompt.

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.