Fully-Faltoo blog by Pratyush

Bio Twitter Screener

7th Sept. 2024

Remember Github login in CLI

I changed my laptop recently. I was unable access GitHub from command line after that.

I was getting this error.
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed

Fix

The fix is to install git-credential-manager. This is mentioned by Github but very poorly.

Once the manager is installed, git push works like ever before. We don't need to create new tokens after every few months.

Leave a comment

Your email will not be published.