git branch new-function
git branch
git checkout new-function
- or
git checkout -b new-function
git status
git add .
git status
git commit -m "comment"
git push -u origin new-function
git checkout master
git branch
git merge new-function
git push
git branch -d new-function