% repo_url = "git@#{request.host}:#{h params[:repo_name]}.git" %>
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<%= " --force" if params[:made_empty] == "yes" %>
Otherwise, to initialize an empty repository:
<% if params[:made_empty] == "yes" %>git clone <%= repo_url %>
<% else %> 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
<% end %>
And you should be good to go! (close instructions)