Deploy Ruby on Rails project on EC2
===

I have setup everything and i am able to connect to the server via ssh on a free tier

now my project is how can i upload the server files and database?

I see that there are some gems in rails such as **rubber** that deploy the files to a server but how can i also integrate git so i can commit changes as well?