Git Deployment for Websites

I’ve been developing web applications for multiple clients for years now, and I’ve always been frustrated by the deployment process. Remembering FTP usernames and passwords, attempting to sync with the server, the non-existent merge assistance, and the occasional crisis of lost files, it’s just a nightmare. Or rather it was a nightmare until I started using git for my deployment. Now, I keep a clone of my sites repository on my server, setup a post-update commit hook, and I don’t even have to think about deploying anymore. Simply add, commit, push, and relax.