I've been used to subversion, so this isn't obvious to me.
Say I have a website at www.example.com, not currently under source control, which I want to control with git.
I want to make changes at say dev.example.com and commit them when I'm confident they work.
How do people normally do this? I've been doing a bit of reading it seems the normal practice is to create the git repo right there at the root of www.example.com, then pull to dev. Is that right? Or is it safer, or better practice, to have both www and dev as working trees and the repo at some third place?