EN | ES | SV

Estrategia Git Rebase

Mantén un historial limpio y lineal.

Ideal para equipos de alto rendimiento y ramas de características individuales. Mantiene el historial lineal y limpio.

El Flujo de Trabajo

$ git checkout -b jz-my-branch 
# make my changes 
$ git push origin jz-my-branch 
# create a Merge Request 

# three days go by and now my branch is out of sync with master 
$ git fetch origin master 
$ git rebase origin/master 
$ git push --force origin jz-my-branch

Nota: Al hacer rebase, solo necesitas resolver conflictos de fusión para confirmaciones más nuevas. Proporciona una mejor experiencia.

Limpiar

# Clean up your branch (warning will delete everything not matching remote)

git fetch --prune origin 
git reset --hard origin/master 
git clean -f -d

# Setting your branch to exactly match the remote branch:
git fetch origin 
git reset --hard origin/master