commit
Installation
SKILL.md
Commit current work
Instructions
-
Check Status: Run the following commands to understand the current state:
git status --shortgit diff --statgit log --oneline -3
-
Analyze Changes:
- Review the output to understand what has changed.
- If
git diffdoesn't provide enough info (e.g., new files), read the files or use your working memory. - Determine if the work should be split into multiple logical commits.
-
Stage Changes:
- New/modified files:
git add <file1> <file2> ... - Deleted files:
git add -u <path>(plaingit addfails on paths no longer on disk) - Mixed (new + deleted): combine both commands, or use
git add -ufor deletions thengit addfor new files
- New/modified files: