how to create new barch in remote git and push it code example

Example 1: push project to new branch git

git push -u origin branchName

Example 2: git push new repo to remote

$ git remote add origin <remote repository URL>
# Sets the new remote

# Push the changes in your local repository to GitHub.
$ git push -u origin master
# Pushes the changes in your local repository up to the remote repository you specified as the origin

Example 3: git link local branch to remote branch

git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'