Dux-Courses Evaluaciones
DOCUMENTATIONCOURSESROADMAPRANKINGBLOGPLAYGROUND
LoginSign Up
Aurum-Courses

Aurum Courses is an advanced learning and evaluation platform designed to accelerate your tech career. We provide an immersive environment filled with challenges, technical documentation, and verifyable certificates for frontend, backend, and fullstack technologies.

Platform Links

  • Interactive Courses
  • Technical Documentation
  • Tech Blog & Articles
  • Mi Perfil y Progreso

About the Project

  • About the Project
  • Contact & Support

Legal & Compliance

  • Privacy Policy
  • Terms of Service
  • Cookies Management
© 2026 Aurum-Courses. All rights reserved. Made with passion for the developer ecosystem.

Desarrollado por Aurumdux

Docs/Git/Rebase: Historial Lineal
Avanzadogit

Rebase: Historial Lineal

Aprende a usar rebase para mantener un historial de commits limpio y lineal.

Merge vs Rebase

Merge crea un commit de fusion que preserva la historia completa. Rebase reescribe la historia moviendo los commits al final de otra rama, creando un historial lineal y mas limpio.

Rebase basico

Rebase "replanta" tus commits encima de otra rama, como si hubieras empezado a trabajar desde el ultimo commit de esa rama.
bash
1# Estando en tu feature branch
2git switch feature/dashboard
3
4# Rebase sobre main (traer los ultimos cambios de main)
5git rebase main
6
7# Si hay conflictos, resolver y continuar
8git add .
9git rebase --continue
10
11# O abortar el rebase
12git rebase --abort
13
14# Luego, de vuelta en main
15git switch main
16git merge feature/dashboard  # Fast-forward merge, historial limpio

Interactive Rebase

El rebase interactivo permite editar, reordenar, combinar (squash) o eliminar commits antes de publicarlos.
bash
1# Rebase interactivo de los ultimos 4 commits
2git rebase -i HEAD~4
3
4# Se abre el editor con las opciones:
5# pick abc123 feat: agregar login
6# pick def456 fix: corregir typo
7# pick ghi789 fix: otro typo
8# pick jkl012 feat: agregar logout
9
10# Cambiar a:
11# pick abc123 feat: agregar login
12# squash def456 fix: corregir typo
13# squash ghi789 fix: otro typo
14# pick jkl012 feat: agregar logout
15
16# Resultado: 2 commits limpios en vez de 4
← AnteriorGit StashSiguiente →Estrategias de Branching