git-reset

reset Undo commits or unstage changes, by resetting the current…

git reset

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".

git reset

git reset {{path/to/file(s)}}

git reset -p {{path/to/file}}

git reset HEAD~

git reset --soft HEAD~2

git reset --hard

git reset --hard {{commit}}

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← git-request-pull git-reset-file →