push code to main branch git code example
Example 1: github Push local branch to Remote
git push origin <Branch_Name>
Example 2: push local branch changes to remote branch
git push -u origin localBranch:remoteBranchToBeCreated
git push origin <Branch_Name>
git push -u origin localBranch:remoteBranchToBeCreated