github - Error with git rebase ("could not apply...") -
i'm administrator of github repository https://github.com/plison/opendial. reduce number of commits on repository, since repository has few thousand commits, many of whom minor debugging changes squashed (especially ones few years old).
i'm therefore trying apply rebasing in order squash part of commits. however, i've experience following issue:
- when type e.g.
git rebase -i head~10
, quite long number of commit lines (much more 10) in interactive editor. reason? - more importantly, once close interactive editor start rebasing, systematically error message "error:could not apply ', even when not make change commits (i.e. if leave lines 'pick', without modification or reordering).
how can solve these issues? should noted repository automatically imported previous (svn) repository hosted on google code. conversion seemed far have worked well, i'm wondering why these errors when trying rebase commits.
the history of project seems contain number of merge commits (presumably made those). presence of merge commits in want interactively rebase causes problems. (an interactive rebase pretty assumes linear history, merge commits not linear.)
your project history somehow seems have two parallel histories merged in commit 11b3653 (use tool gitk
or tig
see this, it's not shown on github's web interface).
i suggest attempt first flatten history rid of parallel histories, , remove merge commits. then, once have strictly linear history, can set rewriting history remove debugging churn.
Comments
Post a Comment