Setup remote repository:
ssh [email protected]
mkdir my_project.git
cd my_project.git
git init --bare
On local machine:
cd my_project
git init
git add *
git commit -m "Initial commit"
git remote add origin example.com:my_project.git
git push -u origin master