diff options
Diffstat (limited to 'src/com/gitblit')
-rw-r--r-- | src/com/gitblit/wicket/pages/EmptyRepositoryPage.html | 12 | ||||
-rw-r--r-- | src/com/gitblit/wicket/pages/EmptyRepositoryPage.java | 3 |
2 files changed, 11 insertions, 4 deletions
diff --git a/src/com/gitblit/wicket/pages/EmptyRepositoryPage.html b/src/com/gitblit/wicket/pages/EmptyRepositoryPage.html index 4f0b9bdb..a424c6a5 100644 --- a/src/com/gitblit/wicket/pages/EmptyRepositoryPage.html +++ b/src/com/gitblit/wicket/pages/EmptyRepositoryPage.html @@ -19,11 +19,17 @@ <p></p>
Please push some commits to <span wicket:id="pushurl"></span>
<p></p>
- <h3>Git Command-Line Syntax</h3>
- <pre wicket:id="syntax"></pre>
+ <h3>Git Command-Line Syntax</h3>
+ <span style="padding-bottom:5px;">If you do not have a local Git repository, then you should clone this repository, commit some files, and then push your commits back to this repository.</span>
+ <p></p>
+ <pre style="padding-top:5px;" wicket:id="cloneSyntax"></pre>
+ <p></p>
+ <span style="padding-bottom:5px;">If you already have a local Git repository with commits, then you may add this repository as a remote and push to it.</span>
+ <p></p>
+ <pre wicket:id="remoteSyntax"></pre>
<p></p>
<h3>Learn Git</h3>
- If you are lost or don't know what to do with this information, consider reviewing the excellent <a href="http://progit.org/book" target="_blank">Pro Git</a> book for a better understanding on how to use Git.
+ If you are unsure how to use this information, consider reviewing the <a href="http://book.git-scm.com">Git Community Book</a> or <a href="http://progit.org/book" target="_blank">Pro Git</a> for a better understanding on how to use Git.
<p></p>
<h4>Open Source Git Clients</h4>
<ul>
diff --git a/src/com/gitblit/wicket/pages/EmptyRepositoryPage.java b/src/com/gitblit/wicket/pages/EmptyRepositoryPage.java index b5f4a359..50695b96 100644 --- a/src/com/gitblit/wicket/pages/EmptyRepositoryPage.java +++ b/src/com/gitblit/wicket/pages/EmptyRepositoryPage.java @@ -49,6 +49,7 @@ public class EmptyRepositoryPage extends RootPage { add(new Label("repository", repositoryName));
add(new RepositoryUrlPanel("pushurl", repositoryUrls.get(0)));
- add(new Label("syntax", MessageFormat.format("git remote add gitblit {0}\ngit push gitblit master", repositoryUrls.get(0))));
+ add(new Label("cloneSyntax", MessageFormat.format("git clone {0}", repositoryUrls.get(0))));
+ add(new Label("remoteSyntax", MessageFormat.format("git remote add gitblit {0}\ngit push gitblit master", repositoryUrls.get(0))));
}
}
|