🦒
【GitHub Error】remote: Invalid username or password.
Error Message
remote: Invalid username or password.
fatal: Authentication failed for <repository path>
Cause
It may be expired the access token of GitHub.
Solution
- Check the remote URL
git remote -v
- Update the remote URL
git remote set-url origin https://<username>:<new_token>@github.com/<username>/<repo>.git
- Check the connection
git fetch
That's all.
Discussion