技能 编程开发 Git 提交与推送工作流

Git 提交与推送工作流

v20260509
git-pushing
本技能用于自动化完整的代码提交和推送流程。它会自动暂存所有更改,生成符合规范的 Conventional Commit 消息,并将代码推送到远程分支。适用于开发人员完成功能或修改后,需要可靠地共享工作成果,并遵循最佳实践的场景。
获取技能
469 次下载
概览

Git Push Workflow

Stage all changes, create a conventional commit, and push to the remote branch.

When to Use

Automatically activate when the user:

  • Explicitly asks to push changes ("push this", "commit and push")
  • Mentions saving work to remote ("save to github", "push to remote")
  • Completes a feature and wants to share it
  • Says phrases like "let's push this up" or "commit these changes"

Workflow

ALWAYS use the script - do NOT use manual git commands:

bash skills/git-pushing/scripts/smart_commit.sh

With custom message:

bash skills/git-pushing/scripts/smart_commit.sh "feat: add feature"

Script handles: staging, conventional commit message, Claude footer, push with -u flag.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
信息
Category 编程开发
Name git-pushing
版本 v20260509
大小 1.2KB
更新时间 2026-05-10
语言