am attempting to clone a GitHub repository using HTTPS with my correct GitHub username (hariprasath
) and password, but I am consistently encountering an “Authentication failed” error:
git clone “https://github.com/hariprasath2003/sql.git”
Cloning into ‘sql’…
Username for ‘https://github.com’: hariprasath
Password for ‘https://[email protected]’:
remote: Invalid username or password.
fatal: Authentication failed for ‘https://github.com/hariprasath2003/sql.git/’
I have double-checked my credentials and they are accurate. What might be causing this issue, and how can I resolve it to successfully clone the repository? Should I consider using a personal access token (PAT) instead of password authentication, and if so, what steps are involved in using a PAT for cloning?
Hari Prasath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.