# Edit email templates in Git and publish a commit
URL: https://samva.dev/changelog/edit-email-templates-in-git
> Each template project is a Git repository. Clone it, edit anywhere, push, and publish the exact commit you tested, or roll back without a deploy.
- Published: 2026-09-02
- Tags: templates, cli

Your email templates now live in a Git repository you can clone. Edit them in your own editor or in the dashboard, then publish the exact commit you tested. What sends is what you reviewed, and rolling back needs no deploy.

```bash
samva templates init --name "Order shipped"
samva templates dev
git add . && git commit -m "Update copy" && git push origin main
samva templates publish
```

Saving in the dashboard commits to the same history. If you and the dashboard changed the same file, the editor shows the conflict so you can pick what to keep.

Start with [Email templates](/docs/sml).

## Links

- [Email templates](/docs/sml)
- [CLI](/docs/developers/cli)

## Related

- [Edit an email template with AI, no account needed](/changelog/edit-an-email-template-with-ai-no-account)
- [Set up your sending domain's DNS in one click](/changelog/set-up-your-domains-dns-in-one-click)
- [All changelog entries](/changelog)
