0

My goal was to push my added and committed files from Visual Studio Code to GitHub. I expected it to work after I pressed the "Pull and Push" button. It turns out, something is wrong. I looked at the error and the following is what it said.

> git push origin main:main
remote: No anonymous write access.
fatal: Authentication failed for 'https://github.com/xItzDiamondx/school.git/'

I attempted signing out of one of my accounts and then signing in to the account that owns the repository that I'm trying to commit to, but to no avail.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
1ens
  • 69
  • 1
  • 10
  • [Does it help?](https://stackoverflow.com/questions/60757334/git-push-from-visual-studio-code-no-anonymous-write-access-authentication-fai) – Shobhit Tewari Nov 18 '21 at 00:26
  • @phd That error did show up after the update, so maybe that will work. – 1ens Nov 18 '21 at 00:50
  • A candidate for the canonical question for this particular problem caused by the update to Visual Studio Code to 1.62.2 in October/November 2021 is *[Fix for "fatal: Authentication failed for"](https://stackoverflow.com/questions/69979522/)* (despite the unspecific title). – Peter Mortensen Nov 19 '21 at 21:33

0 Answers0