How do I workaround «Your local changes to the following files would be overwritten by merge: templates/*.template.yml» on `./launcher rebuild`?

Step 1

git checkout -- <file>

Step 2

git pull

Step 3

Re-upload my custom templates/*.template.yml to the server.