In VS Code when I run
git push -u origin main
I get the same error above. What I am missing?
CodePudding user response:
Worked thanks to @273K like this:
Deleted .git folder
git remote set-url origin [email protected]:zac/FindCommonItems.git
git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]/zac/FindCommonItems.git
git push -u origin main
It prompt also to authenticate from browser