git-pushing
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGit Push Workflow
Git 推送工作流
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"
当用户出现以下情况时自动触发:
- 明确要求推送变更(“push this”、“commit and push”)
- 提及将工作内容保存到远程仓库(“save to github”、“push to remote”)
- 完成功能开发并想要分享
- 说出类似“let's push this up”或“commit these changes”的表述
Workflow
工作流
ALWAYS use the script - do NOT use manual git commands:
bash
bash skills/git-pushing/scripts/smart_commit.shWith custom message:
bash
bash skills/git-pushing/scripts/smart_commit.sh "feat: add feature"Script handles: staging, conventional commit message, Claude footer, push with -u flag.
务必使用脚本 - 不要使用手动Git命令:
bash
bash skills/git-pushing/scripts/smart_commit.sh使用自定义消息:
bash
bash skills/git-pushing/scripts/smart_commit.sh "feat: add feature"脚本会处理:暂存、规范提交消息、Claude页脚、使用-u标志推送。