From ddea4e12f02c3d71b5fb073b6163f3f9519883e9 Mon Sep 17 00:00:00 2001 From: michaeljayt Date: Wed, 19 Nov 2014 11:26:46 +0800 Subject: [PATCH] Add SSH clone url option when enabled SSH access --- src/main/twirl/repo/guide.scala.html | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/main/twirl/repo/guide.scala.html b/src/main/twirl/repo/guide.scala.html index 28d42a2b3..d37328060 100644 --- a/src/main/twirl/repo/guide.scala.html +++ b/src/main/twirl/repo/guide.scala.html @@ -7,21 +7,37 @@ @if(!hasWritePermission){

This is an empty repository

} else { +

Quick setup — if you've done this kind of thing before

+
+ via HTTP + @if(settings.ssh && loginAccount.isDefined){ + or + SSH + } +

Create a new repository on the command line

       touch README.md
       git init
       git add README.md
       git commit -m "first commit"
-      git remote add origin @repository.httpUrl
+      git remote add origin @repository.httpUrl
       git push -u origin master
       

Push an existing repository from the command line

-      git remote add origin @repository.httpUrl
+      git remote add origin @repository.httpUrl
       git push -u origin master
       
+ } } } \ No newline at end of file