diff --git a/commands/template/template.go b/commands/template/template.go index 8ccad07..113ccb9 100644 --- a/commands/template/template.go +++ b/commands/template/template.go @@ -100,6 +100,8 @@ func (t *Templating) cloneRepo(repoURL string, dest string) error { return fmt.Errorf("respository already exists. Remove '%s' directory", dest) } + os.RemoveAll(filepath.Join(dest, ".git")) + return err }