sábado, 21 de noviembre de 2020

GIT Demystifying part 4, git reset --mixed HEAD~

GIT Demystifying part 4

git reset --mixed HEAD~ 

This command will set the HEAD on his parent, and the working directory and the Stage will have the state of the HEAD commit, with the files unstaged. ready to add and commit, or modify and commit.




After git reset --mixed HEAD~ the files will be unstaged.


Secuence diagram of the operation.

Procedure of 3 commits on command line



Procedure on Command line.


The status of the file1 will be unstaged.


We have the option to restore the file, to his previos state, file1:v2.


eot

No hay comentarios:

Publicar un comentario