I have an upstream project which I have forked. I created a new branch on my local and made changes to it. Now I wish to push to a branch upstream so my friend can see it. Can I push code that I changed in my own fork to a branch in the upstream by passing pull requests? Do I need to create a branch in my upstream first? How do I accomplish this?
I have tried:
git push upstream my-upstream-branch
which resulted in:
error: src refspec my-upstream-branch does not match any
error: failed to push some refs to 'https://github.com/upstream-repo'
I have all of my code checked in.
I also tried to create a new branch from the upstream branch and got
git checkout -b shell-ui upstream/shell-ui
fatal: 'upstream/shell-ui' is not a commit and a branch 'shell-ui' cannot be created from it