currente branch has no upstream branch to push the current branch and set the remote as upstream code example Example: the current branch has no upstream branch error git push -u main --all