Best Fixes
Confirm the local branch name exactly and check whether the branch has at least one commit.
Verify that you are pushing the correct branch or ref path, especially in newly initialized repositories.
Why Git cannot find the branch or ref you are trying to push and how to correct it.
This usually means the branch name is wrong, the branch has no commits yet, or the ref you are pushing does not exist locally in the way you think it does.
Confirm the local branch name exactly and check whether the branch has at least one commit.
Verify that you are pushing the correct branch or ref path, especially in newly initialized repositories.
Do not assume the remote is the problem when the ref is missing locally.
Do not keep changing remote names when the real issue is an empty branch or typo.