That depends on what kind of Git integrations you have available for you.
I know Azure DevOps allows you to do some of that but you have to configure the hooks internally. In GitHub, I have less experience but should be essentally the same if you have the Enterprise Account.
In the end, you can use Git to validate your Commit, and do something with it.
If your script file is external (through an INCLUDE), you should be all set with simple file-copies. Which would make this thread purely about DevOps and Git Integration (will have to brush off some of those skills).
If you're doing your work on QVFs or some other binary format then I believe we'll detour into a QlikRepository API conversation.
Both are possible, and I have some powershell code ready-to-go if we'redoing APIs.
Please let me know how you want to steer the conversation and I'll try to get you going to the best of my ability