Club 15CC

Undo ~ 15CC Code

Task Code
Git Clear the Index of Stage Files »
git reset HEAD
Git Find a dangling commit and reset current branch to it » Useful if you want to undo a `git reset --hard...
$ git fsck --lost-found
dangling commit e7e3a2e82abd4f7160618b7f60b9e141b69fb153

# or...
$ git reflog
fdc6198 HEAD@{0}: cherry-pick: Adds additional DEBUG macros...
ab67f92 HEAD@{1}: checkout: moving from ARC-version to master
e7e3a2e HEAD@{2}: an undone commit i want to get back

# then
$ git reset --hard e7e3a2e
Git Update latest commit with some things you forgot (or update the commit message) »
# Add the new files / prep the stage as you'd like it to be
git commit --amend