I have executed the following command
git add git commit -m \"add the foo.java file\"
How can I delete my local commit now
For unstaging all the files in your last commit -
git reset HEAD~