Git回退代码并同步到远程仓库

Git回退代码并同步到远程仓库

  • git log 找到要回退的commit版本号并复制
  • git reset --hard [commitid] 本地库版本回退
  • git push -f origin [branchName] 同步到远端仓库
Last modification:September 26th, 2019 at 11:15 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment