Thoughts, Dynamics 365, random business ideas, etc.

Github and Replit not working? Credentials not being saved.

I’ve been working with Replit and using Github to control the code that Replit is generating.

The GitHub integration was working just fine up until a few days ago. I then started getting an error when trying to interact with my repo from GitHub. Either “error: unable to read askpass…” or “fatal: authentication failed for ‘https://github.com’

ChatGPT told me that I could manually create the credentials in Replit’s shell, so I did that.

Here are the commands from the shell.

git config --global credential.helper store
git credential approve
protocol=https
host=github.com
username=[your github username]
password=[your github personal access token]

It’s a pain in the butt and this keeps resetting every time the environment initializes, but this seems to fix it.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Comments