mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-16 03:49:04 +00:00
Update cheatsheets
This commit is contained in:
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# git reset
|
||||
|
||||
> Undo commits or unstage changes, by resetting the current Git HEAD to the specified state.
|
||||
> Undo commits or unstage changes by resetting the current Git HEAD to the specified state.
|
||||
> If a path is passed, it works as "unstage"; if a commit hash or branch is passed, it works as "uncommit".
|
||||
> More information: <https://git-scm.com/docs/git-reset>.
|
||||
|
||||
@@ -33,6 +33,6 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`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}}`
|
||||
|
||||
Reference in New Issue
Block a user