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
1 Answer
Run
git config --global user.name "your_username"This will set your user.name for git.