When I forked the project initially and set up my env I had this.
> git branch -a
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/upstream/master
I do not have "push" permission to the upstream project. I must send pull requests from my fork.
A week later a new branch was created for work on a specific enhancement to upstream. The team may be working from this branch for many weeks.
remotes/origin/HEAD -> origin/master
remotes/origin/master
remotes/upstream/new-project-feature
remotes/upstream/master
What is the appropriate way for me to setup and submit code to this branch? This is what I have done. Was it the proper thing to do?
git branch new-project-feature
git checkout new-project-feature
git rebase upstream/new-project-feature
.. code changes
.. commit
git push origin HEAD:new-project-feature
.. go to github and send the pull request.
How does the parent project know to merge the pull request to its new-project-feature branch?