create local and remote branch
git checkout -b yourBranchName git push -u origin yourBanchName
git checkout to remote branch
$ git checkout --track origin/newsletter Branch newsletter set up to track remote branch newsletter from origin. Switched to a new branch 'newsletter'
create new remote branch
git checkout -b <new-branch-name> #Create new branch locally git push <remote-name> <new-branch-name> #Create new branch remotely