Synchronisation Git avec Rebase

VérifiéSûr

Synchronisez votre branche locale avec le dépôt distant en utilisant rebase pour maintenir un historique linéaire. Parfait pour mettre à jour votre travail avec les dernières modifications.

Spar Skills Guide Bot
DeveloppementDébutant
4002/06/2026
Claude Code
#git#sync#rebase#version-control

Recommandé pour

Notre avis

Synchronise la branche locale avec le dépôt distant en utilisant un rebase.

Points forts

  • Maintient un historique linéaire sans commits de fusion.
  • Processus simple en deux étapes : fetch puis rebase.
  • Gère les conflits en guidant l'utilisateur vers la résolution.

Limites

  • Ne gère pas les modifications non commitées localement.
  • La résolution de conflits peut être complexe pour les débutants.
  • Ne fonctionne que si la branche distante existe déjà.
Quand l'utiliser

Utilisez cette compétence lorsque vous devez mettre à jour votre branche locale avec les derniers changements distants sans créer de commit de fusion.

Quand l'éviter

Ne l'utilisez pas si vous avez des modifications locales non commitées que vous ne souhaitez pas intégrer, ou si vous préférez une fusion standard (merge) au rebase.

Analyse de sécurité

Sûr
Score qualité85/100

The skill only runs 'git fetch' and 'git pull --rebase', which are standard, non-destructive version control commands. No data exfiltration, system modification, or safety bypass is involved. The allowed-tools scope (Bash(git:*)) is broader than needed but the skill's instructions are benign.

Aucun point d'attention détecté

Exemples

Sync current branch with remote via rebase
Sync my current branch with remote using rebase.
Pull latest changes with rebase
Pull the latest changes from origin with rebase for this branch.

name: git-sync description: Sync with remote repository using pull --rebase. Use when you need to update your local branch with remote changes. disable-model-invocation: true allowed-tools: Bash(git:*)

Git Sync

Sync local branch with remote using rebase.

  1. Fetch the latest changes from the remote repository.

    • Command: git fetch origin
  2. Pull and rebase the current branch on top of the remote branch.

    • Command: git pull origin HEAD --rebase
    • If there are conflicts, resolve them, then git rebase --continue.
Skills similaires