Prompt file imported from coder-2011/no-circles (
.codex/prompts/push-all.md). Copyright stays with the author.
Commit and push all current local changes (tracked, untracked, and unstaged) on the current branch.
Requirements:
- Inspect branch and status:
git branch --show-currentgit status --short
- Review diffs before committing:
git diffgit diff --cachedgit diff --stat
- Stage everything relevant to the current work session.
- Write a reasonable commit message based on the actual diff content (not generic).
- Prefer concise, descriptive, action-oriented wording.
- If multiple areas changed, summarize the common intent.
- Create commits grouped by topic/scope (one commit per topic changed).
- Push to the same branch currently checked out.
- Return:
- branch name
- commit hashes
- commit messages
- pushed ref
Constraints:
- Never use
git add .. - Use
git add -Aor explicit pathspecs instead. - Do not switch branches.
- Do not amend existing commits.
- Do not discard or revert local changes.
- If there are no changes to commit, report that and skip push.