Understanding how to refer to commits, tags, and points in time allows you to navigate history powerfully.
Git keeps track of the state of your references using reflogs. You can query where a branch was N days ago or N hours ago.
git diff HEAD@{"$time"}Resetting rewinds your branch's history to a specific commit. soft leaves your files untouched and stages the differences. mixed (default) leaves files untouched but unstages them. hard permanently wipes any uncommitted local changes to match that commit.
git reset $reset_mode $commit