[petsc-dev] rebase problem

Jacob Faibussowitsch jacob.fai at gmail.com
Sun Dec 6 14:48:23 CST 2020


Mark,

What is the output of git status when it fails? Any files that are marked staged/uncommitted?

I’ve found that rebase will only work out of the box if your branch history is completely linear, i.e. no merge commits in between. If there are merge commits then git is not always able to resolve them. If this is the case then when the rebase fails at some commit some of the files will be staged with the changes from both commits that you must __manually__ reconcile.

Best regards,

Jacob Faibussowitsch
(Jacob Fai - booss - oh - vitch)
Cell: (312) 694-3391

> On Dec 6, 2020, at 14:22, Mark Adams <mfadams at lbl.gov> wrote:
> 
> I am doing a rebase -i to squash commits and even if I do nothing git tris to apply about 7) commits, but starts to fail at #41 and if I try to --skip it it starts failing on every one. The error message is not very useful to me:
> 
> 15:15 adams/landau-gpu-assembly> ~/petsc$ git rebase -i HEAD~5
> error: could not apply a8e4255... Add test of PCASMSetSubMatType with nonlinear problem
> 
> When you have resolved this problem, run "git rebase --continue".
> If you prefer to skip this patch, run "git rebase --skip" instead.
> To check out the original branch and stop rebasing, run "git rebase --abort".
> Could not apply a8e4255... Add test of PCASMSetSubMatType with nonlinear problem
> 
> Any ideas?  Maybe rebase over master first?
> 
> Thanks,
> Mark

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20201206/56930557/attachment.html>


More information about the petsc-dev mailing list