Adding upstream example as well as different way to push an existing local repotags/v1.4.0
@@ -31,6 +31,10 @@ | |||
<p></p> | |||
<pre wicket:id="remoteSyntax" style="padding: 5px 30px;"></pre> | |||
<p></p> | |||
<span style="padding-bottom:5px;">If your repository is meant to be kept in sync with an upstream repository, then you may add it.</span> | |||
<p></p> | |||
<pre wicket:id="upstreamSyntax" style="padding: 5px 30px;"></pre> | |||
<p></p> | |||
<h3>Learn Git</h3> | |||
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> | |||
@@ -52,4 +56,4 @@ | |||
</div> | |||
</wicket:extend> | |||
</body> | |||
</html> | |||
</html> |
@@ -65,7 +65,8 @@ public class EmptyRepositoryPage extends RootPage { | |||
add(new Label("repository", repositoryName)); | |||
add(new RepositoryUrlPanel("pushurl", false, user, repository)); | |||
add(new Label("cloneSyntax", MessageFormat.format("git clone {0}", url))); | |||
add(new Label("remoteSyntax", MessageFormat.format("git remote add origin {0}\ngit push origin master", url))); | |||
add(new Label("remoteSyntax", MessageFormat.format("git remote add origin {0}\ngit push -u origin --all\ngit push -u origin --tags", url))); | |||
add(new Label("upstreamSyntax", MessageFormat.format("git remote add upstream <upstream repository url>"))); | |||
} | |||
@Override |