(use "git push" to publish your local commits) code example
Example 1: my local branch always ahead origin
git pull --rebase
Example 2: push local branch changes to remote branch
git push -u origin localBranch:remoteBranchToBeCreated
git pull --rebase
git push -u origin localBranch:remoteBranchToBeCreated