How do I undo/redo the most recent local commits in Git?
If you want to redo the most recent local commit, why not use git commit -a --amend instead the long sequence of commands described in the article, namely:
Also, you should only rarely use git commit -m "some message" in real life; most often than not the commit message should be longer than just a single line.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you want to redo the most recent local commit, why not use
git commit -a --amend
instead the long sequence of commands described in the article, namely:versus
Also, you should only rarely use
git commit -m "some message"
in real life; most often than not the commit message should be longer than just a single line.