I know I can graft one branch of one git project (says 'old') to another one (says 'new') by running this command:
cd old # location of the 'old' repo
git push git:git@github.com:dude/new.git a-branch
However I do not want to push all the history of the branch to the new git project. I only want to include a subset of the commits in this branch.
How can I do it?