google / clasp

🔗 Command Line Apps Script Projects
https://developers.google.com/apps-script/guides/clasp
Apache License 2.0
4.59k stars 428 forks source link

Workflow for creating project and pushing existing code #758

Open multimeric opened 4 years ago

multimeric commented 4 years ago

Issue Description

I'm after a workflow when I already have some AppsScript code from an external source (e.g. from GitHub), and I want to create a new Google project and push the code there.

I had hoped I could do something like this:

clasp create --empty # Note, this flag doesn't exist
git clone SomeAppsScriptRepo
clasp push

Currently the only way to do this, as far as I can tell is:

clasp create --type TYPE --title TITLE
rm appsscript.json # We don't need this
git clone SomeAppsScriptRepo
clasp push

Specifications

HoldYourWaffle commented 11 months ago

@multimeric What do you think of the solution proposed in #991?

multimeric commented 11 months ago

So after this PR, the workflow would be:

git clone SomeAppsScriptRepo
clasp remote create <name>

Is that right? Because that would be better than even what I suggested.

HoldYourWaffle commented 11 months ago

Yep, glad to hear you like the proposal! Could you also voice your support in #991 for visibility? Thanks!