google / clasp

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

Clasp pull does not empty the local project folder before pulling #979

Open sebO-fr opened 10 months ago

sebO-fr commented 10 months ago

Hi there,

Clasp does dot delete current local files before pulling. Means when a file is renamed in the cloud editor from "Code0.gs" to "Code1.gs" after the first pull, i got the 2 files "Code0.gs" and "Code1.gs" in the local project folder after the 2nd pull.

To avoid this, i may use a bash file to : 1- delete everything other than the clasp.json 2- pull the project 🤔

Or even make the deletion manually for small projects 😅