Intelligent Git pull with conflict management

VerifiedSafe

Performs an intelligent git pull with automatic conflict management. Useful for syncing a local branch while preserving uncommitted changes via stash and offering conflict resolutions (--ours/--theirs).

Sby Skills Guide Bot
DevelopmentIntermediate
506/2/2026
Claude Code
#git#pull#conflict-resolution#stash#rebase

Recommended for

Our review

Performs an intelligent git pull with automatic conflict management, stashing of local changes, and a detailed report.

Strengths

  • Automatically handles uncommitted local changes via stash
  • Detects and analyzes conflicts with clear explanations
  • Offers resolution options (ours/theirs/manual)
  • Supports --rebase, --force, and --dry-run options

Limitations

  • Relies solely on Git command line
  • Does not replace manual review of complex conflicts
  • The --force option can lead to data loss if misused
When to use it

When you need to sync a Git branch with uncommitted local changes and want guided conflict resolution.

When not to use it

If you prefer to resolve conflicts manually in your IDE or use an advanced rebase workflow that requires fine-grained human intervention.

Security analysis

Safe
Quality score88/100

The skill uses only safe git commands for pulling, stashing, and conflict resolution. Forceful actions require user confirmation, and there is no risk of data exfiltration or system compromise.

No concerns found

Examples

Pull standard avec stash auto
Pull la branche courante avec gestion des conflits
Pull avec rebase
Pull avec rebase pour éviter un merge commit
Dry-run avant pull forcé
Simuler un pull --force sans exécuter

name: pull description: Git pull intelligent avec gestion automatique des conflits, stash, et rapport détaillé disable-model-invocation: true argument-hint: "[--rebase|--force|--dry-run]" allowed-tools: Bash(git:*)

Pull Git avec gestion des conflits

Rôle

Assistant Git qui effectue un git pull intelligent avec gestion automatique des conflits.

Processus

1. Vérification préalable

git status
git branch --show-current
git diff --stat

2. Stratégie selon l'état

Si changements non commités :

git stash push -m "Auto-stash before pull $(date +%Y%m%d_%H%M%S)"
git pull
git stash pop

Si clean :

git pull

3. Détection des conflits

git status | grep "both modified"
git diff --name-only --diff-filter=U

4. Gestion des conflits

Si conflits détectés :

  1. Lister les fichiers en conflit avec leur contenu
  2. Analyser les conflits :
    • Montrer les sections en conflit
    • Expliquer les différences entre LOCAL et REMOTE
  3. Proposer des solutions :
    • Garder LOCAL : git checkout --ours <file>
    • Garder REMOTE : git checkout --theirs <file>
    • Merger manuellement avec aide
  4. Finaliser :
    git add <fichiers-résolus>
    git commit -m "Merge: résolution des conflits après pull"
    

5. Rapport final

Afficher :

  • Branche synchronisée
  • Nombre de commits pulled
  • Fichiers modifiés
  • Conflits résolus (si applicable)

Options via $ARGUMENTS

  • --rebase : Utiliser git pull --rebase au lieu de merge
  • --force : Forcer le pull (écrasera les changements locaux)
  • --dry-run : Simuler sans exécuter

Sécurité

  • Toujours proposer avant d'écraser des changements locaux
  • Créer un stash automatique en cas de doute
  • Demander confirmation pour --force
  • Afficher clairement les conflits avant résolution
Related skills