I want to rebase my my-branch
to staging-branch
A---B---C---D---E staging-branch
\
A5---A4---A3---A2---A1 my-branch
After rebasing, I want to get all their commits and then mine.
A---B---C---D---E staging-branch
A---B---C---D---E---A5---A4---A3---A2---A1 my-branch
Then I want to combine all commits as two commits.
A---B---C---D---E---A11---A22 my-branch
I could group all my commits as one using following commands below but not sure how I can split into two.
git reset --soft HEAD~5
git commit --edit -m"A11"
git push origin my-branch
Thank you