Skip to content

Commit 867ece6

Browse files
authored
Clarify git revert command in README
Added clarification on the usage of the -m flag in git revert command.
1 parent 586aeb8 commit 867ece6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ git rebase -i HEAD~4 # Hacer rebase itereactivo
6060
git checkout -- <file-name> # Reconstruir el archivo como estaba antes
6161
git rebase --continue # Continuar con el rebase interactivo
6262
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).
6464
```
6565

6666
## Commands for delete commit in server

0 commit comments

Comments
 (0)