Effect
Since: 1.0.0
%git% reset [with mode] (soft|mixed|hard) [and (set|change) [the] (ref|head) to %text%]
git reset %git% [with mode] (soft|mixed|hard) [and (set|change) [the] (ref|head) to %text%] Resets HEAD and updates the staging area/working directory.
Modes:
- soft: Moves HEAD only. Keeps working directory and staging area intact.
- mixed: Moves HEAD and clears staging area. Keeps working directory safe.
- hard: Moves HEAD, clears staging, and overwrites working directory (discards all uncommitted changes).