Newbie needs some help undoing a mess!
I was tring to push my site to a git repository, so I used the git add command. Then, before I did the commit, I realized I had a
You can do
git reset --hard HEAD^
To move one step back in the version history, effectively undoing the last commit including all deletes.
If you have already pushed your changes you can instead do
git revert HEAD
To create a new commit reverting the delete commit, and then push that.
This answer assumes that you did commit the changes, and that was the last commit you did. If you didn't commit the changes, Willy's answer is better.