it sounds like you should use "git reset" instead of "git revert" to remove the latest changes and reset to the previous commit.
to list previous commits you can use git log 
then after you find the commit you want to return to, use the first 9 characters of what SHA does in git reset cmd, for example: git reset --hard fbcc6aa00
Duan walker
source share