push to main branch github code example
Example 1: push project to new branch git
git push -u origin branchName
Example 2: push from branch to master
$ git push origin develop:master
Example 3: github Push local branch to Remote
git push origin <Branch_Name>
Example 4: push local branch changes to remote branch
git push -u origin localBranch:remoteBranchToBeCreated
Example 5: Push your branch up to the remote.
$ git push <remote> <branch>