When I try to add my remote code to github using :
git remote add origin https://github.com/alfred-nrml/IMdb-Database-Website.git
git branch -M main
git push -u origin main
It shows errors like this
error: failed to push some refs to ‘https://github.com/alfred-nrml/IMdb-Database-Website.git’
I searched across the internet to solve this issue , it shows like rename master branch to main branch but in this case I have only empty repo in my github where I want to link my code which is in vscode remotely …