Uploading files to production level after every change in code can be quite a hassle. Most people would use an automated deployment system instead of doing it manually. We can create an automated deployment system ourself by just using a version control like Git, which would also only take a few seconds to set up.
This post outlines the exact steps on how to do that. You should be able to understand basic terminology like
Install Git on the server- and client-side.
$ yum install git-core
Head to this page if you still don’t know how to install it.
You’ll want to start by creating a bare repository on your server. A folder without its actual source files. The repository should be set up somewhere outside of your web root. We are going to instruct Git where to put the actual files later. Once you decide on a location for your repository, go ahead and create the bare repository:
Now we need to instruct Git where to put the files after every commit. This can be done via hooks, basically actions defined by triggers.