Create a new branch:
Clone/pull the repository and make the new branch:
git pull / git clone [repository] git checkout -b [name_of_new_branch]
You should get a message saying "Switched to a new branch 'branch name'" NOTE: If you have not been added as a Contributor to the repository, you may need to Fork the project instead.
Pushing the branch to github:
git commit -a -m "commit message" git push origin [name_of_new_branch]
When you want to commit something in your branch, make sure you're in the branch. Check all branches using:
git branch -a
There should be an asterisk * next to the branch you're in.
Creating a PR (Pull Request) with the Base Branch (the one you want the changes applied to) as Master:
On the Github Repository page, in the "Branch" menu, choose the branch that contains your commits. Then to the right of the Branch menu, click "New pull request".
Use the "base" branch dropdown menu to select the branch you'd like to merge your changes into. Then use the "compare" branch drop-down menu to choose the branch you made your changes into (the new branch you made).
Give the PR a title and description, and click "Create Pull Request".