stage
Stage local files to git. Shows unstaged/untracked files and lets user pick which to stage.
Files1
View on GitHubSKILL.mdskills/stage/SKILL.md
GitHubStage Files to Git
Arguments
- No argument: show unstaged/untracked files and ask user which to stage
file...: stage the specified files directly
Workflow
With arguments
- Run
git addon the specified files - Run
git statusto confirm
Without arguments
- Run
git statusto list unstaged and untracked files - If no files to stage, say "Nothing to stage." and stop
- Present the files as options using AskUserQuestion (multiSelect: true)
- Stage the selected files with
git add - Run
git statusto confirm
Rules
- Never use
git add .orgit add -A - Always stage specific files by name
- Show git status after staging so the user can see the result