Make sure all changes have been saved before this either per section 2.2 or 3.2 below.
git checkout master
git pull
Now perform steps in section 2 if no local branch exists, or section 3 if a local branch exists.
Branch names must not have spaces.
git checkout -b my-new-branch
This saves your changes to git. Do this before any push or merge.
git add .
git commit -m "my commit message"
This uploads your branch to GitHub.
git push -u origin HEAD
git checkout my-new-branch
git merge master
This saves your changes to git. Do this before any push or merge.
git add .
git commit -m "my commit message"
This uploads your changes to GitHub.
git push
git branch -D my-new-branch