Home > Back-end >  I cannot push to repository, I get error "Support for password authentication was removed"
I cannot push to repository, I get error "Support for password authentication was removed"

Time:01-03

I reviewed this answer here: enter image description here

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

  • Related