Are you sure you want to merge the testing branch with the module branch? Although Magento files will not be present after the merge you are looking for, the entire history of Magento will be inextricably linked to your branch history of your module. Perhaps this is not what you want.
, , git merge --no-commit, Magento, , . , git revert -n -m1 <unwanted-merge-id>.
- . Magento , , .
( ) :
git rev-list --reverse --first-parent --no-merges ..testing | git cherry-pick --stdin
, , . . git reset --hard module - , , !