搜索

PythonReactSEOPDF
GitHub Skill

git-push

Multi-remote git push workflow for GitHub and Azure DevOps. Use when the user says "push to github", "push to azure", "push to origin", "push to secondary", "push to devops", "push to both", "sync remotes", or any variation requesting git push operations. Handles the azure-sync branch workflow that excludes .claude/, specs/, and CLAUDE.md from Azure.

JohnGaros☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Git Multi-Remote Push

Remotes

Remote Platform Branch
origin GitHub main (full repo)
secondary Azure DevOps main (excludes .claude/, specs/, CLAUDE.md)

Push Workflows

GitHub (origin)
git push origin main
Azure DevOps (secondary)

Azure excludes .claude/, specs/, and CLAUDE.md. Use the persistent azure-sync branch:

# Update azure-sync from main, remove excluded files, push
git checkout -B azure-sync main && \
git rm -r .claude CLAUDE.md specs 2>/dev/null || true && \
git commit -m "chore: sync to Azure (excludes .claude, CLAUDE.md, specs)" && \
git push secondary azure-sync:main --force && \
git checkout main --force
Both Remotes
# GitHub first
git push origin main

# Then Azure (filtered)
git checkout -B azure-sync main && \
git rm -r .claude CLAUDE.md specs 2>/dev/null || true && \
git commit -m "chore: sync to Azure (excludes .claude, CLAUDE.md, specs)" && \
git push secondary azure-sync:main --force && \
git checkout main --force

Pre-Push Checklist

  1. Check for uncommitted changes: git status
  2. If changes exist, commit them first (no AI metadata in commit messages)
  3. Then push

Commit Message Format

<type>(<scope>): <description>

Types: feat, fix, refactor, test, docs, chore

No AI metadata - no "Generated with Claude", no "Co-Authored-By: Claude", no emojis.

Intent Mapping

User Says Action
"push to github" / "push to origin" git push origin main
"push to azure" / "push to secondary" Use azure-sync workflow
"push to both" / "sync remotes" Push to origin, then azure-sync workflow

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!