相关疑难解决方法(0)

使用空提交消息重新发布git历史记录

我最近转换了一个svn存储库git svn.不幸的是,svn历史记录有许多空提交消息.当我在没有提交消息的最近提交之前重新定义和编辑/重新提交提交时,这是一个问题.

$ git rebase -i d01
[detached HEAD ff9839c] asdf
 2 files changed, 9 insertions(+), 0 deletions(-)
Aborting commit due to empty commit message.
Could not apply 054e890... 

$ git branch
* (no branch)
  master

$ git commit --amend
fatal: You are in the middle of a cherry-pick -- cannot amend.
Run Code Online (Sandbox Code Playgroud)

在这个例子中,我为第二次最近的提交做了一个提交消息,提交了一个空提交消息,并且在最近一次提交时使用空提交消息停止了.

我想一次编辑所有提交空消息的提交.有没有办法可以做到这一点?也许我可以使用空提交消息更改所有提交以使提交消息首先"空"?

git

15
推荐指数
3
解决办法
5281
查看次数

标签 统计

git ×1