I've cloned a repo (made sure to mark the original repo as upstream) and went the gitflow way: create a develop branch from which all new features are created and commited back to. Every push to Master from develop is by definition a release, meaning master is always deployable. I like this setup a lot. 
Now sometimes aside from this flow I may want to contribute back to upstream some feature that I keep in separate feature-branches. However since a feature-branch is created from develop HEAD and develop may have already had other feature-branches merged back into, this gives a problem: 
- merging the specific feature branchback into my owndevelopis ok
- but I'm not sure how to do a clean pullrequest from this feature branch. I.e: without all the code-changes ofprevious feature branchesthat were merged intodevelopbefore I started the currentfeature branch. I hope this makes sense.
I'm pretty sure rebasing doesn't help, since this only updates my local feature branch with commits of upstream that happened in the meantime. It doesn't help to 'clean' the local feature branch with inherited code changes from develop. 
So, how to do this?
 
     
    