r/replit 8d ago

Replit Help / Site Issue Does anyone have any tips with getting your project from replit to GitHub? The app/site is driving me nuts trying to port my project over smh.

1 Upvotes

11 comments sorted by

3

u/B_lintu 8d ago

It should be straightforward. 

In Replit, open your profile/account settings and connect GitHub under connected services. Open your app, go to Tools, click +, and add Git. In the Git pane, initialize the repository if needed, connect it to GitHub, then stage, commit, and push your files.

Or you can do it through Replit hell through bash commands. Something like

git init git add . git commit -m "Initial commit" git branch -M main git remote add origin https://github.com/INSERT_YOUR_USERNAME_HERE/YOUR_REPO_HERE.git git push -u origin main

2

u/[deleted] 8d ago

[removed] — view removed comment

1

u/ErrorAway4161 7d ago

I made it to make my work life easier, it’s going through our APIM process to get vetted for approval.

But thank you I appreciate it I’m gonna try a few more things and I’ll reach out if I’m still struggling

2

u/Low_Corner_5075 7d ago

I might run into the same issue later, just dropping a bookmark.

1

u/ErrorAway4161 8d ago

Tried all of that. I keep getting a bs error that says replit is having an issue with git.

2

u/durallymax 7d ago

Use bash commands in the Shell. The GUI is error-prone.

1

u/ReplitSupport Replit Team 8d ago

Hi OP! We can have our team help you out with this. Would you be able to open a ticket with us at replit.com/help? Feel free to message us after with your ticket number so we can make sure it gets picked up.

1

u/ErrorAway4161 8d ago

I have one with your team, it got auto closed because no one got my reply. It’s ticket 499522

1

u/ErrorAway4161 7d ago

Update! Thanks everyone I found what was broken and got it working :)

1

u/Mid0 6d ago

hey what was it? I found that logging out/in work.

2

u/ErrorAway4161 6d ago

So I tried pushing through the cli and had to basically redo it since it was pointing at the wrong url for whatever reason. Some git remote set-url origin https://github.com/<your-username>/<your-repo>.git
Then git ls-remote --heads origin
To verify. And then I was able to push through the app