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.
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
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
- Check for uncommitted changes:
git status - If changes exist, commit them first (no AI metadata in commit messages)
- 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 |
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-01-20
- Mise à jour de l’index
- 2026-01-26
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!