git cant 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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like