This is a workflow for contributing a pull request (PR) to a project on GitHub using feature branches:
git pull upstream master
.
gh-pages
branch, make sure you’re on the correct branch (git checkout -b gh-pages
) and pull from the upstream branch (git pull upstream gh-pages
).git checkout -b issue123_name_of_branch
.git com -m "#123 fixes some issue"
.git push -u origin issue123_name_of_branch
.git checkout master
.git pull upstream master
) and push back to your master (git push
).If you are pushing to a branch when creating the pull request (for example to gh-pages
) you have to select the source branch to compare to. The branch name has to be typed manually. The branch selection screen is also a bit dodgy with text selection (for me in any case).