steps to push to branch code example
Example 1: push a new branch
git push -u origin <branch-name>
Example 2: push local branch changes to remote branch
git push -u origin localBranch:remoteBranchToBeCreated
git push -u origin <branch-name>
git push -u origin localBranch:remoteBranchToBeCreated