使用git log命令查看所有的歷史版本,獲取你git的某個歷史版本的id 或是到github上查找如下圖。
假設查到歷史版本的id是fae6966548e3ae76cfa7f38a461c438cf75ba965。
fae6966548e3ae76cfa7f38a461c438cf75ba965
$ git reset --hard fae6966548e3ae76cfa7f38a461c438cf75ba965
$ git push -f -u origin master
© UCAMC. All rights reserved. Powered by CITIAR.