0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

既存のGASプロジェクトをローカル環境でも管理する

Posted at

記事概要

既存のGASプロジェクトをローカル環境に持ってきて、VScode等でファイルを編集したり、Gitで管理等する。

方法

claspというnodeのパッケージを利用する。

  • ➀ インストール
    npm install -g @google/clasp
    
  • ➁ ログイン
    clasp login
    
    ※認証が求められる
  • ➂ clone
    clasp clone "スクリプト ID"
    
    ※プロジェクトの設定から、スクリプトIDを取得

    2023-12-31_22h10_08.png

☆ソースを変更した時

  • ローカルのソースを変更
    pushして、クラウドのソースを変更
    clasp push
    
  • クラウドのソースを変更
    pullして、ローカルのソースを変更
    clasp pull
    

参考

https://github.com/google/clasp

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?