查看历史提交记录
# git log
commit asdfasdf06e12962abc734996b3asdfasdqwer6b (HEAD)
Author: asdfsadf <asdfasdf@asdf.com>
Date: Sat Jun 27 22:20:30 2010 +0800
20asdf020
2、找到需要回滚到的提交点,复制它的hash值
# git reset --hard 你复制的hash值
git reset --hard asdfasdf06e12962abc734996b3asdfasdqwer6b
3、将当前指向的head推到git
# git push --force --all
# git push --force --all
Username for 'https://github.com': user
Password for 'https://user@github.com':
Enumerating objects: 2360, done.
Counting objects: 100% (2360/2360), done.
Delta compression using up to 4 threads
Compressing objects: 100% (1619/1619), done.
Writing objects: 100% (2360/2360), 7.48 MiB | 90.00 KiB/s, done.
Total 2360 (delta 732), reused 2310 (delta 727)
remote: Resolving deltas: 100% (732/732), done.