I am assuming you have git installed on your instance.
On the server create a repo for a server with "--bare"
[server:~/]$ mkdir app.git
[server:~/]$ cd app.git
[server:~/app.git]$ git init --bare
On the client clone, commit, and push:
[client:~/]$ git clone ssh://<username>@<servername>/~/app.git app
[client:~/]$ cd app
[client:~/app]$ touch readme.rst
[client:~/app]$ git add readme.rst
[client:~/app]$ git commit -am"Initial commit"
[client:~/app]$ git push origin master
Now your code has been pushed to the server. What you can do from here is up to you.
Additional note: git is a distributed version control system, which means there is little difference between a "client" and a "server". In this case, there is no extra service running on your server, you only need ssh access, git does the rest.