kkreft
10/5/2016 - 7:14 AM

Git undo commit source: http://stackoverflow.com/a/927386

Git undo commit source: http://stackoverflow.com/a/927386

$ git commit -m "Something terribly misguided"              (1)
$ git reset HEAD~                                           (2)
<< edit files as necessary >>                               (3)
$ git add ...                                               (4)
$ git commit -c ORIG_HEAD                                   (5)