the best way for source control and update live site

Hi, what's the best way for source control wordpress site and update the live site with dev source code.
Thanks,