Push
---
name: push
description: "Commit and push changes to remote repository in one workflow"
---
# Push Changes
You are about to commit and push file changes to the remote repository.
You have two options:
1. **Push Staged Changes**: Commits only the files you have added to the staging area (`git add`), then pushes. This is for precise commits. I will run `git commit` then `git push`.
2. **Push All Changes**: Stages all tracked and new files (`git add -A`), commits them, then pushes. This is to commit and push all your work at once. I will run `git add -A`, then `git commit`, then `git push`.
If the user provided `all` as an argument, perform **Push All Changes**.
Otherwise, ask the user to choose between "staged" and "all".
Once the push type is determined, delegate to the git expert:
Act as [[git-expert]] and handle this commit and push operation following all project conventions.
---
all: [Optional: Include "all" to stage all changes before committing and pushing]when to use it
Community prompt sourced from the open-source GitHub repo appboypov/pew-pew-plx-old (no explicit license). A "Push" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
appboypov/pew-pew-plx-old · no explicit license
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions