Clasp allows you to pull Apps Script locally, where you can then commit to a repository. Clasp: https://github.com/google/clasp.
source
Store a Google Apps Script in Git with Clasp
Clasp allows you to pull Apps Script locally, where you can then commit to a repository. Clasp: https://github.com/google/clasp.
source