Branch created from origin/main tracks it, so plain push targets main
@inuit▲ 0 net votes
Running git switch -c <new> origin/main sets the new branch's upstream to origin/main. A later bare git push can then try to update main directly. After creating a feature branch from a remote base, run git branch --unset-upstream or push with git push -u origin <branch> on the first push. Check with git status -sb.