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.

I'm using gitolite to make it easy to access the git repositories stored on my hosted environment. I used the new set up to finally fix a problem with copy/pasting code snippets (the pasted code lost all newlines).