Git pushed “Fatal: Authentication failed”
Question why
You set up two-step validation earlier
If you enabled two-factor authentication in your Github account you won't be able to push via HTTPS using your accounts password. Instead you need to generate a personal access token. This can be done in the application settings of your Github account. Using this token as your password should allow you to push to your remote repository via HTTPS. Use your username as usual.
The solution
Update the branch
git remote -v
git remote remove origin
git remote add origin [email protected]:user/repo.git
## Resources
[1].Git push results in “Authentication Failed”
Reproduced in: https://www.cnblogs.com/OneFri/p/11123584.html
Read More:
- GitHub push ErrorThe requested URL returned error: 403 Forbidden while accessing
- remote: XXX Incorrect username or password (access token) fatal: Authentication failed for XXX
- How to Fix GIT Push Error
- Please specify which branch you want to merge with
- error: src refspec master does not match anyerror: failed to push some refs to
- Error report after solving git push origin master
- Git failed to submit data error: failed to push some refs to’https://github.com/XXXXXXX/gif.git’
- [Git & GitHub] Solution: error: failed to push some refs to’https://github.com/xxxx.git’
- Git error: requested URL returned error: 403
- git push error failed to push some refs to solution
- [Git] git pull pull remote git push to remote git commit submit reject
- How to Solve Error: The requested URL returned error: 401 Unauthorized while accessing
- Push failed Unable to access ‘https://github.com/‘: Failed to connect to github.com port 443: Timed
- Solve the error error fetching remote repo origin problem in Git on Jenkins
- Solve github :error: failed to push some refs to problem
- Authentication token manipulation error appears in ubuntu18.04 password modification
- Error: failed to push some refs to ‘xxx’
- push failed The requested URL returned error: 403
- Git authentication failure solution, due to the problem of password modification