I forked/cloned apache whirr on Github, and began work on the trunk branch. During the work, I pulled two commits from origin/trunk. When I generate a patch by running a git diff first_feature_commit HEAD, I get a patch that has these two commits in it. The patch was therefore rejected when I submitted it.
How do I create a patch without the commits that I pulled from origin/trunk?
Generate the patch using
git format-patchand it will split them up. You could also just make your diff withgit diff HEAD^to get only your commit (which is presumably the most recent one).