admin's blog

Deployment via Git

I was recently introduced to Git and really started to enjoy it's lightweight branching model. So now I use git as both a source control system and as a way to sync files on the server. In particular, to release a change from my laptop, I first commit the change into my local git repository, run "git push" to push the changes to the server, and then run "git pull" on the server in the public_html directory to get the updated files. No more sync'ing with FTP, which had trouble removing files.