Git issues in the gitpane in Replit

Anyone else having issues pushing to Git trough the regulair Gitpane? I keep getting the error “Failed to authenticate with the remote. Please ensure that Replit has access to this repository on GitHub”.
I reset the credentials. Removed the Replit app from Git and added it back. Then when trying to push again, it asked me to connect to Gitbub first. This connecting worked with the credentails i have. But then when pushing, i again get the Failed to authenticate with the remote. Please ensure that Replit has access to this repository on GitHub. Error.

As a workaround i pushed it using the personal access token method and pushing trough the Shell. This worked. But then when going to the git pane, i still see the error and pending commits. Any tips

2 Likes

Having the same exact issue

Since when are you having this issue. Mine started last night?

1 Like

Yesterday

Looping in @kody-replit

I mentioned it to support that already 2 people are having an issue. They said there was no known issue reported yet. But maybe they will look into it once it is clear if it’s an isolated issue or platform-wide.

1 Like

I’m also having this issue in two separate Replits.

Steps I’ve tried so far include disconnecting/revoking access to Replit from Github side and attempted to reconnect/reauthorize through Replit.

Ultimately my work around has been to create a personal access token in Github with repo access and then use Shell in Replit to bypass the Git pane and push “manually” to repo

Hello,

I’d be curious to see what happens if you tried un-linking the GitHub repository from the Repl/creating a new one using Replit. If that doesn’t do anything you could also try creating a new Repl entirely and seeing if it works from (if that does work, it suggests something got broken in the Repl, otherwise it’s probably an issue between Replit and GitHub).

Thanks,

Callum

This is working for me now.

Could you let me know what you did to fix it?

Working for me now as well. Guess it was a bug that got fixed. Glad to see how quickly they got on it. Many thx Replit support!

I didn’t do anything to fix it, just started working.

Good to hear its working now for others. Hopefully related bug is completely resolved. I think its one of the most useful tools for anyone to use, but gets overshadowed by discussions about the Agent. Surprised more people didn’t notice breakage.

1 Like

Sorry, late to the party here, but I ended up having to make an entirely new fork in replit of the app in order to fix mine. I was stopped dead in the water on dev so I was trying everything. I didn’t even try support because I knew I’d get the same results everyone else did.

Also been having intermittent issues since last week. Reset creds like the OP, no joy, however it has started to connect again recently. I also found that if I get the “Failed to authenticate with the remote” message simply logging out of Replit and back in seems to reset the connection and can push updates to Github again.

I ran into this on my main account earlier this week, got it resolved (not sure, reset credentials, disconnected/reconnected, and a few other things) but not sure the exact solution.

Now I am helping two student groups in my class and they are both hitting the exact same issue so it definitely isn’t resolved yet. I had the students submit support tickets so that we can get it looked at.

One thing that I did notice is that on my account when I go to the “connected services” it doesn’t show Github here but has a alert saying “GitHub connections have been moved to the integrations page and existing connections will be deprecated.”. However, my students’ accounts do not have this same notification and Github doesn’t show up for them at all here.

Inside of the Integrations, if I scroll to the bottom it shows that I have Github connected as my Git provider, but when my students tried to reconnect their Github here, the popup modal fails to connect every time.

Would love to know the specific solution that I can provide to my students as they are working on their final projects at the moment and this is the first issue that they’ve ran into.

You van use the personal access token methode as a work around. Do you know how it works?

Yes I know how it works, no that’s not the solution. It’s definitely a connection issue between Replit and Github but it’s user or repl dependent. We’ve disconnected and killed all Oauth connections with Github, reconnected, and still doesn’t work.

I think their easiest solution is to simply fork or start a new Repl and import their code manually (since they can’t push it out to github). We will definitely find a work around but it’s definitely a bug that has been coming up and not resolved.

Same problem here this weekend.

The integration was authenticated in Sign Up - Replit, but showing up under Git Providers, not the other connectors. Replit didn’t find it first and glitched trying to authenticate to GitHub which was missing from the grid.

After disconnecting and logging out and back in, Replit reconnected again, but faced the permission issues.

The Git Pane docs also sounds out of date (referring to a Tools section, which now feels is the Integrations one?)

The version control icon is missing too.

How is it now? Any better? I’m hearing from others that it looks like with the new GitHub connector they launched it works better?

Also running into this issue today. I’ve tried all the normal delete/reset integrations on both the Replit and Github side, I’ve re-authenticated, and still the same error.

I do notice that there’s 2 GitHub integrations on the Sign Up - Replit page, but I think only the one in the Git Providers section (not the Connectors) section is hooked up to the Git pane itself.

Also looks like it didn’t install the Replit app on the Github side, and I’m unable to find where to install it, it doesn’t seem like it’s listed in the Github Marketplace.

I figured out the a solution. You need to reset your integration between github and replit.

  1. Go to your github account and ‘Settings’ → ‘Applications’
  2. Remove Replit from your ‘Installed Github Apps’, ‘Authorized Github Apps’ and ‘Authorized AOth Apps’.
  3. Go back to Replit and go to ‘Integrations’ and remove Github from you ‘Git Providers’
  4. Go back to your replit project and ‘Sync with Remote’.
  5. Follow the steps to re-add the connection with the Github repo.
  6. This should now fetch or pull the code with github again.

Hope this helps!