Issue
While trying to do that, I keep getting this error but my URL is correct. However, when I tested with public repo it works fine
Solution
Since April 2021, no more password is accepted when authenticating Git operations on GitHub.com: you would need to use (or cache) a PAT (Personal Access Token)
Since a public repository does not require authentication when cloning, you would not see the same error message.
So: Double-check what password is used.
Said password could be cached in your Windows Credential Manager: see what git config credential.helper
returns.
If it is manager-core, open the windows Credential Manager, and see if you have a github.com
entry.
If you do, check the cached password.
Answered By - VonC