Skip to main content

commit-and-push

Creates clean conventional git commits using standard git and pushes changes to the remote repository. Use when the user asks to "commit and push", "push changes", or complete a commit followed by git push.

来源信息

仓库
FradSer/dotclaude
最近来源活动
2026年8月11日 09:08
检测到的 SKILL.md 语言
英语
星标
593
分支
50

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
commit-and-push
description
Creates clean conventional git commits using standard git and pushes changes to the remote repository. Use when the user asks to "commit and push", "push changes", or complete a commit followed by git push.
user-invocable
true
argument-hint
[optional commit message or instructions]
allowed-tools
["bash"]
# Commit and Push Skill (Standard Git) Create clean, atomic Conventional Commits using standard `git` commands and push them to origin. ## Workflow 1. **Inspect status and diff**: ```bash git status --porcelain git diff --staged git diff ``` 2. **Stage files**: ```bash git add <file1> <file2> ... ``` 3. **Commit**: Formulate a Conventional Commit message and commit: ```bash git commit -m "<type>(<scope>): <summary>" ``` 4. **Push**: Detect current branch and push: ```bash BRANCH=$(git branch --show-current) git push origin "$BRANCH" ``` If pushing a new branch for the first time, append `-u`: ```bash git push -u origin "$BRANCH" ```
在 GitHub 查看