git-reset: add simpler --hard example
This commit is contained in:

committed by
Starbeamrainbowlabs

parent
05780d6183
commit
595c4eb234
@@ -23,6 +23,10 @@
|
|||||||
|
|
||||||
`git reset --soft HEAD~2`
|
`git reset --soft HEAD~2`
|
||||||
|
|
||||||
|
- Discard any uncommitted changes, staged or not (for only unstaged changes, use `git checkout`):
|
||||||
|
|
||||||
|
`git reset --hard`
|
||||||
|
|
||||||
- Reset the repository to a given commit, discarding committed, staged and uncommitted changes since then:
|
- Reset the repository to a given commit, discarding committed, staged and uncommitted changes since then:
|
||||||
|
|
||||||
`git reset --hard {{commit}}`
|
`git reset --hard {{commit}}`
|
||||||
|
Reference in New Issue
Block a user