跳转到内容

Ko Samet

  • Home
  • Blockchain
  • GOLANG
  • Javascript
  • English
  • Links

git回滚代码

  • 发表于: 2023年3月22日 2023年3月22日
  • 分类: Linux
1. git log // 查询要回滚的 commit_id
2. git reset --hard commit_id // HEAD 就会指向此次的提交记录
3. git push origin HEAD --force // 强制推送到远端

删除 commit 的三种方法
https://www.jianshu.com/p/c9f131e22a60

文章导航

前一页 上一篇: Sui Move 常用命令
后一页 下一篇: Python selenium 浏览器自动测试

admin

1011RSS订阅
  • git push 简化
  • 关闭开盖自动开机功能
  • Ubuntu安装nginx
  • css3 media 模版
  • ffmpeg视频护眼处理

© 2025  Ko Samet. 由 WordPress 强力驱动. WordStar, 主题由Linesh Jose提供