【发布时间】:2012-09-05 19:50:54
【问题描述】:
是否可以进行以下操作?
- 使
git rebase --interactive仅将标准样板输出到文件,而不是输出到文件并在编辑器中打开它。 - 让用户编辑文件。
- 让用户以编辑后的文件名重新运行
git rebase。 - 继续通常的变基过程。
用例:当然是脚本化变基。例如,请参阅how to re-order commits in Git non-interactively。
【问题讨论】:
-
除了下面的 git rebase 之外,git filter-branch 是另一种选择:stackoverflow.com/questions/19636750/…
标签: git scripting git-rebase non-interactive