0

I'm looking to update and login to Github on my terminal. I had suspicious activity on my account so I had to change my password and now when I'm trying to push my code out for my project it says:

Remote: invalid username or password

What do I do to fix this?

Alexander
  • 127
  • 1
  • 10
  • 2
    That error means your git client software is using your Github user account’s password instead of using a dedicated SSH key or OpenID token. **You should never use your Github account password with git client software**. – Dai Nov 26 '19 at 18:47
  • As Dai said, don't use passwords, neither in your computer, by using the SSH (pretty easy to set up and use) you're way more secure, and if anyone accesses your computer you just remove the SSH public key in GitHub, and no one will be able to access your repo or account. – Bruno Miguens Nov 26 '19 at 18:53
  • Oh wow, this is good to know. I'm still a student and haven't heard that this wasn't the right way to do things. – Alexander Nov 26 '19 at 18:54
  • Possible duplicate of [Remove credentials from Git](https://stackoverflow.com/questions/15381198/remove-credentials-from-git) – phd Nov 26 '19 at 19:06
  • https://stackoverflow.com/search?q=%5Bgithub%5D+forget+credentials – phd Nov 26 '19 at 19:06
  • https://stackoverflow.com/search?q=%5Bgithub%5D+reset+credentials – phd Nov 26 '19 at 19:06

0 Answers0