[petsc-dev] how to rebase together last two commits in branch?

Aron Ahmadia aron at ahmadia.net
Tue Oct 22 13:55:37 CDT 2013


git rebase -i HEAD~2/3


On Tue, Oct 22, 2013 at 2:53 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>
>   I would like to put together the last two commits in a branch, how do I
> do this?
>
>  git rebase -i
>
> doesn't help because it only handles the last commit. How do I tell git to
> go back one commit in the rebase?
>
>    Thanks
>
>    Barry
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20131022/d33b0544/attachment.html>


More information about the petsc-dev mailing list