Ask coding questions

← Back to all posts
Connecting repl.it to a GitHub repo?
h
CaptainAnon (114)

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

Commentshotnewtop
Yuman (7)

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.

21natzil (1091)

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

YesidCano (1)

@21natzil when? is it working now?

fernandob (3)

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

CaptainAnon (114)

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

domrany (4)

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!)

nik_safe (1)

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

CaptainAnon (114)

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

nik_safe (1)

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

CaptainAnon (114)

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

triptych (3)

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

CaptainAnon (114)

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

abueide1 (0)

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

CaptainAnon (114)

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

gplantard (0)

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

Retrac11 (0)

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

CaptainAnon (114)

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

Retrac11 (0)

@CaptainAnon The repl was created first.

CaptainAnon (114)

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