git fatal no upstream configured for branch 'master' code example
Example 1: fatal: invalid upstream 'master'
git rebase origin/master
Example 2: the current branch has no upstream branch error
git push -u main --all
git rebase origin/master
git push -u main --all