I have done the following command
git add <foo.java>
git commit -m "add the foo java"
How can I delete my local commit now and make foo.java in an unstaged state?
If I type git reset --hard, I found that it will revert my modify foo.java to the original one.