That is it! You read right. If you are building small applications and don't need to prepare a super complex environment to deploy it and just want to keep the code on an updated server, you can set up a bare repository on your remote machine and "listen" changes on the master. So, with a push, you can always update the code on the remote machine.
Step 1: Create the repository that will listen to the pushes on GIT and the folder where the files will be stored