Synchronisation Git avec Rebase

VérifiéSûr

Synchronisez votre branche locale avec le dépôt distant en utilisant pull --rebase. Utile pour intégrer les modifications distantes tout en préservant l'historique linéaire.

Spar Skills Guide Bot
DeveloppementDébutant
2002/06/2026
Claude CodeCursorWindsurfCopilotCodex
#git#sync#rebase#version-control#remote

Recommandé pour

Notre avis

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

Points forts

  • Opération simple et rapide pour mettre à jour la branche locale.
  • Utilise rebase pour une historique linéaire et propre.
  • Gestion interactive des conflits avec git rebase --continue.

Limites

  • Ne fonctionne que pour la branche courante et le remote 'origin'.
  • Peut poser problème si l'utilisateur préfère merge à rebase.
  • Les conflits peuvent être déroutants pour les débutants.
Quand l'utiliser

Quand vous souhaitez mettre à jour votre branche locale avec les dernières modifications du dépôt distant tout en gardant un historique linéaire.

Quand l'éviter

Lorsque vous préférez un merge traditionnel ou que vous travaillez sur une branche partagée où le rebase est déconseillé.

Analyse de sécurité

Sûr
Score qualité80/100

The skill only runs git fetch and git pull --rebase, which are common version control operations with no destructive or exfiltrating behavior. It is restricted to the Bash(git:*) tool, preventing execution of arbitrary commands.

Aucun point d'attention détecté

Exemples

Sync current branch with remote
Sync my local branch with remote using pull --rebase.
Fetch and rebase
Fetch latest from origin and rebase my current branch on top of remote HEAD.

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