When I am trying to push my code, vscode issues the command git push origin main:master instead of git push origin main. How do I change it?
When I am trying to push my code, vscode issues the command git push origin main:master instead of git push origin main. How do I change it?
You need to change your local main branch to track origin/main instead of origin/master:
git branch --set-upstream-to=origin/main main
Click on the "..." sign in source control and select "Pull, Push">"Push to...".