Rebasing a git history with empty commit messages

前端 未结 6 1905
谎友^
谎友^ 2020-12-14 20:20

I recently converted an svn repository with git svn. Unfortunately the svn history has a number of empty commit messages. This is a problem when I rebase and

6条回答
  •  醉话见心
    2020-12-14 20:45

    You can recommit and continue with an empty commit message:

    Aborting commit due to empty commit message.
    Could not apply XXX... XXX
    $ git commit --allow-empty -C $(<"$(git rev-parse --git-dir)/rebase-merge/onto")
    $ git rebase --continue
    

提交回复
热议问题