Skip to content
← Back to Community
Issue Importing from Github
Profile icon
Jackleonard1

Screenshot 2019-10-07 at 20.40.16

I receive a "the String did not match the expected pattern" when trying to import from Github, however I'm following the exact pattern specified by repl.it

Here's a few things to help troubleshoot:

  • my repo is set to public
  • my repo URL works perfectly fine anywhere else
  • I haven't had this issue before
  • I've tried, to no success:
https://github.com/user/repo http://github.com/user/repo https://www.github.com/user/repo github.com/user/repo
Voters
Profile icon
IT21191688
Profile icon
MMarkosPro21
Profile icon
neex_io
Profile icon
Jackleonard1
Comments
hotnewtop
Profile icon
MMarkosPro21

Add the https:// then add the link :)

Profile icon
Jackleonard1

@MMarkosPro21
Same Issue
Screenshot 2019-10-07 at 22.16.57

Profile icon
MMarkosPro21

@Jackleonard1 Oh! Its a STRING!

Profile icon
Jackleonard1

I don’t get it ? @MMarkosPro21

Profile icon
Vandesm14

@Jackleonard1 Nope. Is your repo private? If so make it public then try. If it still doesn't work, dm me on Discord and I can set up your repl manually (Vandesm14#3364)

Profile icon
Jackleonard1

@Vandesm14 Hi, No it is set to public. I don't use Discord I'm afraid.

Profile icon
Vandesm14

@Jackleonard1 I guess the only thing that's left to do is for you to report this to https://repl.it/bugs

Profile icon
Jackleonard1

@Vandesm14
Thanks for the tip ! I've just sent through a bug report. This is a pretty bad bug to have in production, disappointed in the repl.it team. Could have been easily mitigated with some basic qa.

Profile icon
Vandesm14

@Jackleonard1 Its sad.
Here's the command I was talking about:

git init && git remote add origin link-to-your-repo && git fetch --all && git reset --hard origin/master

Create a repl. Then, hit F1, type in "shell", hit enter, copy+paste the command, and hit enter. Your repo should now be imported into the repl!

Please mark this as answered if I helped your problem 👍

Profile icon
Jackleonard1

@Vandesm14 This is awesome! Going to try out now. Thanks so much !

Profile icon
Jackleonard1

@Vandesm14

Should this happen? - Unsure how to hit F1 using Mac OS X, so just popped it in the console
Screenshot 2019-10-08 at 18.31.48

Profile icon
Vandesm14

@Jackleonard1 Try this one:
git init && git clone link-to-your-repo && git fetch --all && git reset --hard origin/master
If that doesn't work try this:
git init && git clone link-to-your-repo

Profile icon
neex_io

@Jackleonard1 you are not in shell
You have to press F1 and then in the drop-down that shows up type shell. Make sure you are in the middle window when you press f1. Sometimes it takes a few tries

Profile icon
MMarkosPro21

Try this: Go to REPL's home and scroll down until you see "Link GitHub". Just link it, and you're fine!