GIT Demystifying part 6
git reset ADDRESS -- somefile
This operate over an specific file.
Secuence diagram of the operation.
procedure of 3 commits on command line
After apply command git reset ADDRESS -- somefile, the working directory will have the files of the 3 commit. Now it report two states for the same file1, one to be ready to commit and other as not staged. this mean that only can undo changes over one file.
Same with two files, and reset with one file.
We see that only can do operation over file1.
eot
No hay comentarios:
Publicar un comentario