diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb index a7894ab6..bacba8f9 100644 --- a/app/views/repositories/show.html.erb +++ b/app/views/repositories/show.html.erb @@ -6,7 +6,7 @@

<%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'dir', :revision => @rev } %> -
+
<%if @repository.type.to_s=="Repository::Git"%> <%= @repos_url%> <%else %> @@ -24,7 +24,7 @@ <% end %>

<% if @repository.branches.empty?%> -

进入到需要建立版本库文件夹,打开命令行执行如下

+

建立版本库文件夹,打开命令行执行如下:

git init

git add *

@@ -32,6 +32,11 @@

git remote add origin <%= @repos_url%>

git push -u origin master

+

已经有本地库,打开命令行执行如下:

+
+

git remote add origin <%= @repos_url%>

+

git push -u origin master

+
<% end %> <% if !@entries.nil? && authorize_for('repositories', 'browse') %> <%= render :partial => 'dir_list' %>