First need to know the count of commits done in the current branch with:
git rev-list --count HEAD ^develop
Then use the number for start the rebase with:
git rebase -i HEAD~20
It opens the rebase editor where you will see all the commits ids & message starting from the oldest one so mark with s the ones that you want to merge with the previous one.
First need to know the count of commits done in the current branch with:
git rev-list --count HEAD ^develop
Then use the number for start the rebase with:git rebase -i HEAD~20
It opens the rebase editor where you will see all the commits ids & message starting from the oldest one so mark with s the ones that you want to merge with the previous one.