How it works...

From the parent commit pointed to by the commit at HEAD, Git resets the branch pointer and HEAD to point to the parent commit. The staging area is reset, but the working tree is kept as it was before the reset, so the files affected by the undone commit will be in a modified state. This is illustrated in the following diagram:

The --mixed option is the default behavior of git reset, so it can be omitted: git reset HEAD^
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.156.46