# http://www.rubynaut.net/articles/2008/03/04/git-easy-way-to-setup-a-private-remote-repository#comments cd my_app git init git add . git commit -m 'initial import' scp -rp ./.git me@remote.com://data/git/my_app.git git remote add remote_repo ssh://me@remote.com/data/git/my_app.git git push remote_repo cd .. && rm -rf my_app git clone ssh://me@remote.com/data/git/my_app.git cd my_app