Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow for creating project and pushing existing code #758

Open
multimeric opened this issue Mar 31, 2020 · 3 comments
Open

Workflow for creating project and pushing existing code #758

multimeric opened this issue Mar 31, 2020 · 3 comments

Comments

@multimeric
Copy link

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

  • Node version (node -v): v11.15.0
  • Version (clasp -v): 2.3.0
  • OS (Mac/Linux/Windows): Ubuntu 18.04
@HoldYourWaffle
Copy link
Contributor

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

@multimeric
Copy link
Author

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants