This question already has an answer here:
- How to undo last commit(s) in Git? 51 answers
I did the following comments
git add /file1/path
git rm /file/path
git commit -m "message"
how do I undo my last commit using git?
Like I don't want to have those files committed.
git commit
(and leave the working tree unmodified?), or do they wish to also revert the working tree? – Aaron McDaid Aug 30 '14 at 22:47