Skip to content
Sign upLog in
← Back to Community

Connecting repl.it to a GitHub repo?

Profile icon
teymour

Is there any way that I can connect a repl to a github repository, so that I can make commits and pull requests?

Voters
Profile icon
JMuzhen
Profile icon
DennisM5
Profile icon
Khadra-make-upm
Profile icon
oladunjoyeebene
Profile icon
LilyChinny
Profile icon
YordanSotomayor
Profile icon
andrewilliamson
Profile icon
JoshuaCowan
Profile icon
TatielleDias
Profile icon
programmeruser
Comments
hotnewtop
Profile icon
Yuman

Repl.it can import/read from my repo. But when I commit/push, it gives me:
"Please grant Repl.it permission to access GitHub on your behalf"

I click on the [Connect] button, it send me back to the same starting position.

Profile icon
domrany

How the open shell helps to connect a github repo to the new repl?
I could open the open shell and use git clone to clone some repo from remote, but when I close the current repl, the runner will be erased, therefore, the git repo will be removed!
I also see the git address entry when I want to create new rep, but entering the repo it says can't add an empty repo (and my git repo is not empty!)

Profile icon
21natzil

Not at the moment, however don't worry! This feature is planned and being developed as we speak.

Profile icon
YesidCano

@21natzil
when? is it working now?

Profile icon
fernandob

@YesidCano
,
@CaptainAnon
mentioned below that we can use openshell with cmd/ctrl + shift + p aka command line

Profile icon
AustinJones3

@21natzil
any update on this?

Profile icon
teymour

@AustinJones3
you can open a shell using cmd/cntrl + shift + p and then use the git command to communicate with the Github repository.

Profile icon
Retrac11

Is it possible to connect create a Github repo for it AFTER it has been created?

Profile icon
teymour

@Retrac11
Do you mean that the Repl has been created before the Github repository or the Github repository before the Repl?

Profile icon
Retrac11

@CaptainAnon
The repl was created first.

Profile icon
teymour

@Retrac11
You can go into the 'version control' tab in the sidebar and set up a Github repository from there.

Profile icon
Retrac11

@CaptainAnon
Thank You!

Profile icon
nik_safe

I would love to connect my folder on reple.it to GitHub.would be great to have that

Profile icon
teymour

@nik_safe I think that's now possible to do.

Profile icon
nik_safe

@CaptainAnon
is there a documentation or a link available about who to do that ?

Profile icon
teymour

@nik_safe If you create a new repl there is an option to enter a github.com URL.

Profile icon
triptych

@CaptainAnon
No, that just does a one way import. You want read and write back to the repo.

Profile icon
teymour

@triptych
You can use the git command. Command (or control on windows) + Shift + P and then search for 'open shell.'

Profile icon
abueide1

@CaptainAnon
when i open the shell, git doesn't work. It's not installed in my repl apparently.

Profile icon
teymour

@abueide1
What sort of repl are you using? It works for me in a Python 3 repl.

Profile icon
gplantard

@CaptainAnon
Command (or control on windows) + Shift + P launch a private navigation on firefox. Is there another way to open the shell ?

Profile icon
gplantard
Profile icon
IT21277122

Screenshot 2022-05-18 095031