Synchronisation Git avec Rebase

VérifiéSûr

Synchronisez votre branche locale avec le dépôt distant en utilisant pull --rebase. Idéal pour mettre à jour votre branche avec les changements distants tout en maintenant un historique linéaire.

Spar Skills Guide Bot
DeveloppementDébutant
3002/06/2026
Claude CodeCursorWindsurf
#git#sync#rebase#pull#fetch

Recommandé pour

Notre avis

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

Points forts

  • Évite les commits de merge inutiles
  • Maintient un historique linéaire propre
  • Instructions simples et automatisables

Limites

  • Nécessite la résolution manuelle des conflits
  • Peut réécrire l'historique si mal utilisé
  • Suppose que l'origine distante est configurée
Quand l'utiliser

Lorsque vous voulez mettre à jour votre branche locale avec les changements distants de manière propre et linéaire.

Quand l'éviter

Sur des branches partagées où le rebase est déconseillé ou si vous préférez conserver les commits de merge.

Analyse de sécurité

Sûr
Score qualité80/100

The skill uses only standard git pull --rebase and fetch commands, which do not exfiltrate data or perform destructive actions. No external network calls beyond the git remote are made, and no sensitive information is exposed. The risk is minimal.

Aucun point d'attention détecté

Exemples

Sync current branch with remote
Sync my current branch with the remote repository using rebase.
Pull latest changes with rebase
Pull latest changes from origin and rebase my current 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