Curso git

git checkout main^: Esto te lleva al último commit
git checkout HEAD^: Navega al último commit de la rama actual
git checkout HEAD^3: Navega hacia atras segun el número que se le especifique
git branch -f main HEAD~3: Con esto te mueves a la fuerza

The ~ operator
git checkout -f main c6
git checkout -f bugFix HEAD~1




Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.