Make sure all changes have been saved before this either per section 2.2 or 3.2 below.
git checkout master
git pullNow 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-branchThis 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 HEADgit checkout my-new-branch
git merge masterThis 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 pushgit branch -D my-new-branch