Git Can't Authentication

Git Can't Authentication

I'm a developer that has switched to ubuntu and I can't get git to work. I have logged in to git but I still get

> git push origin main:main
remote: No anonymous write access.
fatal: Authentication failed for '

when I try to update the code on GitHub from what's on my PC I'm running

  • Ubuntu: 20.04
  • git: 2.25.1
  • visual studio code: 1.62.2
7

1 Answer

Run

git config --global user.name "your_username"

This will set your user.name for git.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Chloe Bennett
Author

Chloe Bennett

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.