Github branch change from master to main terminal error

Firstly, I changed the Github branch from master to main. I forgot to commit my changes before so when I tried to commit after the change i got this error in the terminal.

any recommendations on what to do in this scenario

From the bottom of your terminal it looks like you’re still on the master branch, as shown by the terminal and the bottom left of VSCode. However your trying to push your main branch via git push origin main. Running this command tries to push your local main branch, but the rest of your commands like git pull are running on master.

Switch branches to what you want to push to github, sync and then try to push again.

It’s possible you may have to use --force at some point, but only do that as a last resort if you’re moving things around on github.

Ok, thank @bradtaniguchi