Reputation: 43
I am new to using github, and the professor of a class that I am in is storing the source code and assignment information in a repository that I need to clone with the following command git clone https://github etc. etc.
I incorrectly entered my username and password for Github the first time I was prompted, and now I'm stuck with failed authentications like remote: Invalid username or password fatal: Authentication failed
because it won't reprompt me. Any insight into this issue? Some things online made it seem that it could be fixed by fiddling with a thing called credential.helper, but didn't make it clear how that would help.
Upvotes: 4
Views: 538
Reputation: 1324407
If you are on Windows, see "How do I sign out in the Git Bash console on Windows?"
printf "protocol=https\nhost=github.com" | git credential-manager reject
# or
printf "protocol=https\nhost=github.com" | git credential-manager erase
If you are on Mac, see "Updating credentials from the OSX Keychain"
See also this answer, but replacing "erase
" with "delete
" or "erase
".
Upvotes: 3