How to clear the commit history of a template?

I created a custom template from one of my actively developed gitlab-projects.
Unfortunately, a new project from template preserves all commit history of template. How to avoid this, if I want to update my template regularly?
The only idea is to create another template with the same content and amend all commits in the future.

1 Like