If you're currently running the script successfully but then decide to re-run the script, that's not going to work because the template variables no longer exist. Therefore git reset --hard is necessary.
In order to fix that, the template files shouldn't be modified at all. They should all be copied before modification, not afterwards.
If you're currently running the script successfully but then decide to re-run the script, that's not going to work because the template variables no longer exist. Therefore
git reset --hardis necessary.In order to fix that, the template files shouldn't be modified at all. They should all be copied before modification, not afterwards.