mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
1.7 KiB
1.7 KiB
sidebar_position
| sidebar_position |
|---|
| 1 |
commit
Create a local git commit for source skills without pushing.
skillshare commit # Commit with default message
skillshare commit -m "Update skill" # Custom message
skillshare commit --dry-run # Preview
When to Use
- Save a local checkpoint before experimenting with skill edits
- Commit changes on a machine or source repo that does not have a remote configured
- Keep local history separate from sharing changes across machines
Use push when you want to commit and push to a git remote.
What Happens
flowchart TD
CMD["skillshare commit"]
CHECK["1. Check repository status"]
STAGE["2. Stage all changes"]
COMMIT["3. Commit"]
CMD --> CHECK --> STAGE --> COMMIT
commit stages all changes in the skills source directory and creates a git commit. It does not require a remote and never runs git push.
Options
| Flag | Description |
|---|---|
-m, --message <msg> |
Commit message (default: "Update skills") |
--dry-run, -n |
Preview without making changes |
Prerequisites
Your skills source directory must be a git repository:
skillshare init
If the source is not a git repository, commit prints a setup hint and exits without changing files.
Examples
# Commit with the default message
skillshare commit
# Commit with a custom message
skillshare commit -m "Update review skill"
# Preview staged files and message without committing
skillshare commit --dry-run