How does clone-from-repo work?

On the internet I found instructions that are supposed to explain a dummy how npm works.
Starting point is cloning a repo from github.

https://glitch.com/edit/#!/remix/clone-from-repo?REPO_URL=https://github.com/freeCodeCamp/boilerplate-npm/

From a glitches point of view, what is supposed to happen if someone clicks on that link?

This is what I received:

https://glitch.com/edit/#!/alert-fallacious-vise?path=README.md%3A1%3A0

I am just having the impression that it is random walk how glitch responds to the above URL.
Do I need to connect glich with github somehow, before I hit the clone-from-repo URL?
Or should I login to glitch before importing something from github?

Hi,
You can view all of the code for clone-from-repo here which should explain how it works: https://glitch.com/edit/#!/clone-from-repo

I do not think you need Glitch and Github linked to use it though. It can just use git clone to clone a public repository.
Let us know if you have any more questions!

1 Like

I think that Glitch uses Docker to do the usual magic at the background and using the mentioned project by @yogurtsyum. You can actually see the process at the project itself.

1 Like