Synchronisation Git avec Rebase

VérifiéSûr

Synchronise votre branche locale avec le dépôt distant en récupérant les modifications et en utilisant `git pull --rebase`. Cela évite les commits de fusion et maintient un historique linéaire. Utile pour intégrer les changements amont avant de publier vos propres travaux.

Spar Skills Guide Bot
DeveloppementDébutant
6002/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 fetch et rebase.

Points forts

  • Processus automatisé et simple
  • Évite les commits de fusion inutiles
  • Gère les conflits en invitant à les résoudre
  • Maintient un historique linéaire

Limites

  • Nécessite une résolution manuelle des conflits
  • Ne fonctionne pas si la branche locale a fortement divergé
  • Synchronise uniquement la branche courante
Quand l'utiliser

Lorsque vous devez mettre à jour votre branche locale avec les derniers changements distants sans créer de commit de fusion.

Quand l'éviter

Lorsque vous souhaitez préserver l'historique des fusions ou lorsque vous travaillez sur une branche partagée où le rebase pose problème.

Analyse de sécurité

Sûr
Score qualité85/100

The skill only uses safe git commands (fetch, pull --rebase) within the allowed Bash(git:*) toolset. There is no risk of data exfiltration, system destruction, or execution of arbitrary code. The operations are standard and non-destructive beyond the normal scope of version control.

Aucun point d'attention détecté

Exemples

Sync current branch
Sync my current branch with the remote repository using rebase.

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