viernes, 20 de noviembre de 2020

GIT Demystifying part 3, git reset --hard HEAD~

 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


initial 3 commits command line


Procedure on command line



eot

No hay comentarios:

Publicar un comentario