If you are interested in using the ServiceNow SDK (Software Development Kit) you can
Use it to strictly manage a scoped application (global and app customizations coming soon) installation and store it in source control of your choosing (such as git)
Use the Domain Specific Language from ServiceNow called Fluent to manage metadata
Use JavaScript ES Modules or Typescript to write code to run in ServiceNow
Test your JavaScript Script Includes, ES Modules, and Typescript using JEST (or other) testing framework
Subscript to NOW Hacks for more ServiceNow content like this