Any suggestions on how to use RebaseCommand
, MergeCommand
or any other command in JGit to squash commits? I cannot find many examples and the documentation is not very helpful.
A simple example
I want to squash the following tree:
A-----B------C------D------E------F------G------H
Into this one:
A----Z-----H
Where Z
is the squashed commit of B
, C
, D
, E
, F
, and G
.
Any suggestions and useful resources are appreciated.