git revert revert
2023-09-14 08:58:55 时间
参考链接:https://zhuanlan.zhihu.com/p/78077520
有时候,我们需要revert某个feat,因为这个feat需要延后上线。
但是过一段时间,这个feat要上线了,因此需要把之前的revert 再 revert回来,不然,这个feat分支已经没办法再merge到主线分支了
直接在主线分支上找到revert的版本号revert_version_of_mine, 对这个操作执行revert
git revert --no-commit [version-hash]
git commit -a -m 'revert revert'
git push
相关文章
- [廖雪峰] Git 分支管理(1):创建与合并分支(HEAD、master、dev、指针)
- [Git] Undo a commit that has already been pushed to the remote repository
- [Git] Use git add --patch for better commit history and mitigating bugs
- jenkins:通过ssh拉取git项目并通过ssh部署到远程服务器(jenkins 2.257)
- 【学习总结】Git小结 (Mac版)
- 【学习总结】Git学习-参考廖雪峰老师教程一-Git简介
- [Practical Git] Remove unnecessary git tracking with .gitignore files
- git-【二】本地git操作提交、版本回退
- FastAdmin 是如何利用 Git 管理插件代码的?
- Git的安装、配置、使用01【Git Bash Here命令行操作】