If you have comitted wrong files to git and you want to undo it, here is what you can do : $ git commit -m “Some comment here” (1)$ git reset HEAD~ (2)<< edit files as necessary >> (3)$ git add … (4)$ git commit -c ORIG_HEAD (5) This is what you are looking to… Continue reading How to undo last commtis on GIT