Branching

Create a new branch the following way.

git checkout -b branchname

Push the branch you made to your server repo the following way.

git push origin branchname

So once you are happy with the branch, add commit and just merge it by checking out to master and merging the branch like this.

git checkout master
git merge branchname
git branch -d branchname

Remove branches in the remote that has been removed from local

git fetch --prune
git push origin --delete test