When you complete a user request that involves modifying files or code, you MUST automatically create a git commit to save the changes. This ensures that every successful AI intervention is snapshotted.
After finishing the code modifications for the user's request:
git add .. Instead, stage ONLY the files you have explicitly modified:git add ... .py, .go, .sol, .js, .ts, .md). Avoid staging environment files (.env), binaries, or large assets.git status to confirm only the intended changes are staged.git commit -m "" with a concise, descriptive summary of your changes.Do not ask for permission; execute the commit automatically. If the user explicitly asks not to commit, respect their request. Skip if not a git repository or no changes were made.
共 1 个版本