Get the list of commit hash(es) for the commits you wish to merge using the git log.
git log <branch-name>
Then add run the below command for all the commit hashes to pick all the commits you wish to pick.
git cherry-pick <commit-hash>
then use
git push origin <target-branch>
You can also use this refrence link:
https://betterstack.com/community/questions/how-to-merge-specific-commit/