Undoing Things

Minor Changes To A Commit

To redo a commit, make additional changes, stage them, and commit again, run

$ git commit --amend

This is an example where the second commit replaces the results of the first

$ git commit -m "initial commit"

$ git add forgotten_file

$ git commit --amend