lgh_save
Create a local Git checkpoint by committing working directory changes without pushing to any remote. Ensures .gitignore exists, aborts on blocking issues, and reports success or clean tree status.
Instructions
Create a local checkpoint: ensures a .gitignore exists, then git add + git commit in the working directory WITHOUT pushing anywhere — nothing is synced to the LGH server or any other remote. Initializes git if the directory is not a repo yet, and aborts when trash detection finds blocking issues. Use this for intermediate saves; switch to lgh_up when the work should also reach the LGH backup. Returns JSON with success and a human-readable output line ("Nothing to commit, working tree clean" when there are no changes).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path to the LOCAL working directory (defaults to current directory) | |
| message | Yes | Git commit message |