I ran the revert command to undo my previous commit but then realized I had made a mistake. 
How can I undo my revert action and restore to my previously committed state?
Example: 
(1) In my project, I have two files A and B and then I committed the changes and push the changes to GitHub.
(2) I added file C and committed changes but didn't push the changes to Github.
(3) I ran the Revert which removed the file C from my project but it was a mistake.
How can I undo my last action of Revert to bring back the file C, which was committed and then reverted on my local repo but never pushed to Github?
'git reflog' to list last few HEADS.
Choose commit id of the change you wanted.
git reset to that commit id.
How to undo a revert action to move back to my previous commit in git