Or use SCP to send the file to your VPS. Sorry the options are endless for syncing/sending files across machines.Yes, when you use : "git clone <repository>" you have the working code files on your VPS that you can now execute.
https://www.katacoda.com/courses/git this website looks to be a good resource on how to work with Git.
replace the 0's with the IP of the VPS