Git回退代码到指定版本方法

2022年6月6日12:29:30

1. 查看所有的历史版本,获取你git的某个历史版本的id, git log
2. 回退本地代码库:git reset --hard ID
3. 推送到远程服务器:git push -f -u origin master
4. 重新拉代码:git pull

  • 作者:Hello, I'm Tina
  • 原文链接:https://blog.csdn.net/weixin_36833780/article/details/84142504
    更新时间:2022年6月6日12:29:30 ,共 110 字。