查看历史提交的log中的版本号
$ git log -3
commit 4dc08bb8996a6ee02f
Author: Mark xxx@xx.com
Date: Wed Sep 7 08:08:53 2016 +0800
xxxxx
commit 9cac9ba76574da2167
Author: xxxxx@qq.com
Date: Tue Sep 6 22:18:59 2016 +0800
improved the requst
commit e377f60e28c8b84158
Author: xxxxxx@qq.com
Date: Tue Sep 6 14:42:44 2016 +0800
changed the password from empty to max123
此命令还可以用
git log –oneline #显示结果变为行
回滚到指定的版本
git reset --hard e377f60e28c8b84158