【发布时间】:2015-08-19 05:29:09
【问题描述】:
我最近合并了一个尚未准备好进入 master 的功能。在没有意识到的情况下,我将坏主人重新定位到另一个好的分支。
但现在我不知道如何从我的另一个故事中删除那些糟糕的提交。
这里是我的 git 日志文件
commit 15bb0d630f9b9cf59axxxxxxx8100d3a7302
Author: Moises Zaragoza <mZaragoza@xxxx.com>
Date: Mon Jun 1 11:45:31 2015 -0400
Some updates
commit 3caf183afe3f5d7dcfxxxxxxxa239d44c8dfd11a
Author: Moises Zaragoza <mZaragoza@xxxx.com>
Date: Mon Jun 1 11:45:31 2015 -0400
Some updates
commit 3c6c81c7a3215fcdxxxxxxxb56a5540745c397
Author: Moises Zaragoza <mZaragoza@xxxx.com>
Date: Wed Jun 3 16:59:31 2015 -0400
Bad Commit that should not be here
【问题讨论】:
-
有点不清楚你在问什么。您能否尝试添加其他信息以明确说明?
-
您是否也想从 master 中删除错误提交?
标签: git git-merge rebase git-rebase