JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

git 回退到某个 commit 版本

发布时间 2023-03-27 18:46:35作者: Angelia-Wang

1 查看 commit 日志

git log

2 复制你想回退到的 commit 版本的 commit_id

3 本地回退

git reset --hard commit_id

4 同步到远程仓库(可选的,若远程仓库不想回退就不用执行该语句)

git push origin HEAD --force
    本栏目推荐文章
  • node版本管理工具推荐
  • linux 安装最新版本git
  • 各种语言版本的“Hello, world”程序汇总
  • Spark版本不兼容导致Standalone集群无法连接问题
  • Chrome 浏览器插件 V3 版本 Manifest.json 文件中 Action 的类型(Types)、方法(Methods)和事件(Events)的属性和参数解析
  • Ubuntu 20.04版本安装k8s控制节点
  • git bash报错fatal: detected dubious ownership in repository at的解决方法
  • 免费APP分发,支持应用合并、内测分发、扫码下载,下载量安装量统计,版本记录和应用在线封装打包app
  • QT开发 2024最新版本优雅的使用vscode开发QT
  • Linux更新PHP版本
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们