Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

remote: Invalid username or password. fatal: Authentication failed

Tags:

I'm just getting started with Git/Github and I'm completely stuck. I'm using Terminal on Mac/OSX El Capitan and when it asks for password it tells me it is invalid, but I am entering the same password that I created for my GitHub account, so surely this should work? What am I doing wrong?

Last login: Sun Dec  4 10:46:35 on ttys000
Seans-MBP:~ mrseanbaines$ git push -u origin master
Username for 'https://github.com': mrseanbaines
Password for 'https://[email protected]': 
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/mrseanbaines/cartwheeling-kitten.git/'
Seans-MBP:~ mrseanbaines$
like image 543
mrseanbaines Avatar asked Dec 04 '16 09:12

mrseanbaines


People also ask

Why is my GitHub password not working?

You might be getting this error because you have updated your password. So on Terminal first make sure you clear your GitHub credentials from the keychain and then push your changes to your repo, terminal will ask for your username and password.


1 Answers

I had faced same issue.
Solution:
Step 1: Control Panel
Step 2: Credential Manager
Step 3: Click Window Credentials
Step 4: In Generic Credential section ,there would be git url, edit and update username and password Step 5: Restart Git Bash and try for clone enter image description here

like image 77
amoljdv06 Avatar answered Sep 17 '22 14:09

amoljdv06