先显示提交的log
$ git log -3commit4dc08bb8996a6ee02fAuthor: Mark Date: Wed Sep708:08:532016+0800xxxxxcommit9cac9ba76574da2167Author: xxxDate: Tue Sep622:18:592016+0800improved the requstcommite377f60e28c8b84158Author: xxxDate: Tue Sep614:42:442016+0800changedthepasswordfromemptytomax123
回滚到指定的版本
gitreset--hard e377f60e28c8b84158
强制提交
gitpush-f origin master
完美