<% repo_url = "git@#{request.host}:#{h params[:repo_name]}.git" %>

Congratulations! Your repository was added!

If you have an existing local git repository you wish to push, try...

cd your-repo git remote add origin <%= repo_url %> git push origin master

Otherwise, to initialize an empty repository:

mkdir your-repo cd your-repo git init touch .gitignore git add .gitignore git commit -m "Added blank .gitignore to initialize repository" git remote add origin <%= repo_url %> git push origin master

And you should be good to go! (close instructions)