# Git Update Commit Push

> Automate repository update handoff by summarizing changes, staging files, committing, and pushing to remote. Use when the user asks to "总结更新并提交", "git add commit push", "自动提交代码", or any request that combines change summary + Git commit/push in one flow. Use when this capability is needed.

- Skill: `tomevault-io/git-update-commit-push` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/git-update-commit-push`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/git-update-commit-push/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/git-update-commit-push

---


# Git Update Commit Push

Summarize current repo changes and execute a safe one-command Git handoff.

## Workflow

1. Verify repository and branch state with `git status --short --branch`.
2. Summarize staged/unstaged changes using:
   - `git diff --stat`
   - `git diff --cached --stat`
   - `git diff -- <file>` for key files when needed
3. Run the automation script:
   - `scripts/auto_git_update.sh`
4. Report:
   - Summary of changes
   - Commit hash and message
   - Push target (`remote/branch`)

## Command

Run from repository root:

```bash
skills/git-update-commit-push/scripts/auto_git_update.sh
```

Common options:

```bash
# custom commit title
skills/git-update-commit-push/scripts/auto_git_update.sh --message "feat(api): add retry logic"

# commit but do not push
skills/git-update-commit-push/scripts/auto_git_update.sh --no-push

# preview only
skills/git-update-commit-push/scripts/auto_git_update.sh --dry-run
```

## Guardrails

- Stop if not inside a Git repository.
- Stop if no changes exist.
- Detect current branch automatically unless `--branch` is provided.
- Default remote is `origin` unless `--remote` is provided.
- Keep commit message concise and action-oriented. Use `references/commit-style.md` if unsure.

## Resources

- Script: `scripts/auto_git_update.sh`
- Reference: `references/commit-style.md`

---
> Source: [wdkwdkwdk/DataWowsight](https://github.com/wdkwdkwdk/DataWowsight) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-24 -->

