You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ git rebase -i HEAD~4 # Hacer rebase itereactivo
60
60
git checkout -- <file-name> # Reconstruir el archivo como estaba antes
61
61
git rebase --continue # Continuar con el rebase interactivo
62
62
git rebase --abort # La rama se volverá al estado anterior a la rebase interactiva
63
-
git revert -m 1 <hash_del_commit_merge> # Hacer rollback en git con el hash del merge para revertir cambios
63
+
git revert -m 1 <hash_del_commit_merge> # Hacer rollback en git con el hash del merge para revertir cambios. La bandera -m 1 es fundamental. Indica a Git que mantenga la línea principal (la rama en la que estabas cuando hiciste el merge).
0 commit comments