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

=> More information.

git reset
git reset {path/to/file(s)}
git reset --patch {path/to/file}
git reset HEAD~
git reset --soft HEAD~2
git reset --hard
git reset --hard {commit}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

=> CC-BY

Proxy Information
Original URL
gemini://freeshell.de/tldr/git-reset.gmi
Status Code
Success (20)
Meta
text/gemini;lang=en-GB
Capsule Response Time
103.801012 milliseconds
Gemini-to-HTML Time
0.310733 milliseconds

This content has been proxied by September (ba2dc).