38 lines
859 B
Markdown
38 lines
859 B
Markdown
---
|
|
name: git-pushing
|
|
description: Automates staging, committing, and pushing changes to Git when the user asks to commit and push.
|
|
---
|
|
|
|
# Git Pushing
|
|
|
|
## Intent
|
|
|
|
This skill teaches Claude how to automate the workflow of staging changes, creating a commit, and pushing to the remote repository.
|
|
|
|
## When to Use
|
|
|
|
Activate this skill when the user request mentions:
|
|
|
|
- “commit and push”
|
|
- “push to remote”
|
|
- “pousse les changements”
|
|
- “git push”
|
|
- similar phrases indicating a Git commit + push flow
|
|
|
|
## Instructions
|
|
|
|
Claude should execute the provided script to:
|
|
|
|
1. Stage all changes.
|
|
2. Commit with either:
|
|
- a generated message if none specified, or
|
|
- a user-provided commit message.
|
|
3. Push commits to the configured remote.
|
|
|
|
### Run Script Examples
|
|
|
|
- Default invocation:
|
|
|
|
```bash
|
|
bash skills/git-pushing/scripts/smart_commit.sh
|