git -C {source_repo} format-patch -{number of commits} HEAD --stdout -- {absolute folder/file path(s)} > /tmp/new.patch
git -C {target_repo} am < /tmp/new.patch
This will "stack" all these commits on top of HEAD.
git -C {source_repo} format-patch -{number of commits} HEAD --stdout -- {absolute folder/file path(s)} > /tmp/new.patch
git -C {target_repo} am < /tmp/new.patch
This will "stack" all these commits on top of HEAD.