GIT Demystifying part 3
git reset --hard HEAD~
This command return the head to the parent commit, and the state will be of the parent commit.
State is on commit 3.
when apply git reset --hard Head~, head points to his parent, and the state will be updated, the previos state will be lost.
Secuence diagram of operations
Procedure on command line
No hay comentarios:
Publicar un comentario