This is the way to go. Make it its own git repo and you get to detect regressions and verify changes for free.
My comment was regarding separation of concerns.
Copy out the hosted content to /var/www or somewhere else outside of git, separated from the repo.