2 Projects to 1 repository?


Can I link 2 different project to 1 repository of 1 project?

You can’t ‘link’ Glitch projects to any repo at the moment - we only support exporting to repos on demand. You are able to export to whichever repo you like, though. You’d need to handle merging of those multiple projects once exported, which might be tricky depending on whether you have any common files.

I mean, when I have in my project in the package.json
“repository”: {
“url”: “Project_link”

What is that?

take a look at https://docs.npmjs.com/files/package.json#repository

That means. It does not work for glitch.com? Will it come somewhen?

You can use https://api.glitch.com/project-name/git if you want

I cant open this link.

Git can. Per the article I linked you to: “It should not be a url to an html project page that you put in your browser. It’s for computers.”

So, I should put that link in to my package.json?

and also in the second project package.json?

It gives me this error with “repository”: {
“url”: “https://api.glitch.com/name/git

parse error: Invalid numeric literal at line 33, column 7

I’d check your code as it should work fine. The following works fine for me so just copy and paste it, replacing project-name:

"repository": {
   "type": "git",
   "url": "https://api.glitch.com/project-name/git"

So, I need to set that to my both projects? Then it should work?

Is it possible to open the repository? How can I save the project on it?

Yes, though I’m not sure what you’re expecting to happen - it’s just a reference as explained in the article I linked you to.

You can push and pull from it using git.

It automatically runs in the background of your Glitch project, you don’t need to do anything to save the project on it. Snapshots are taken as you make changes.