I've made some changes to an upstream project in my local repository. I originally plain copied the upstream repo into my local project. Now I'd like to grab a range of commits and apply it to the upstream repo. I could do this with a patch, but I was wondering if I could use subtree merge to do this.
So, more concretely:
# project structure
root
projectB
...
# history
HEAD
C
B
A
If I add projectB's repo as a remote, checkout one of its branches, how do I merge change B and A into this branch, leave behind the other changes in my main repo, and finally push the branch back to projectB's remote?
Thoughts?