I revert my code to previous version, now I want to revert it back to my latest version. How can I do that ? Thanks
Try the following:
git checkout master
(or what did You mean by revert?)