the current branch has no upstream branch but it exists code example
Example 1: $ git push fatal: The current branch favicon has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin favicon
git push -u origin --all
Example 2: the current branch has no upstream branch error
git push -u main --all