Add command to reset last commit
This commit is contained in:
parent
5b1d3880fb
commit
45158cf82e
|
@ -80,6 +80,9 @@ git reset
|
||||||
# Selectively unstage changes to files.
|
# Selectively unstage changes to files.
|
||||||
git reset -p
|
git reset -p
|
||||||
|
|
||||||
|
# Hard reset the current branch back one commit.
|
||||||
|
git reset --hard HEAD^
|
||||||
|
|
||||||
# Discard changes to a file
|
# Discard changes to a file
|
||||||
git checkout -- <file>
|
git checkout -- <file>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue