From the main repository on github, I created a fork on github and I keep the master branch of my fork up to date with the main repository by doing:
git checkout master
git pull upstream master
upstream is set to the URL of the main repository.
I do this on the command line. It might be nice to be able to do that from within magit (emacs) but that isn't my question right now.
I then make a pull request by doing something like:
git checkout -b new-branch
... create changes including commits within emacs ...
git push --set-upstream origin new-branch
then go to github and make the pull request via its GUI. I'm fine with the GUI github part but if that can be simplified, I'm interested in that as well.
The last two git commands is what I'd like help with the most. I've read the documentation but find it hard to follow.
I have magit 2.12.1 and git 2.17.2 but I'm happy to update either if that will help. Also, I realize that the above sequence may not be optimal so I'm open to changing the sequence.