From caeee11eaba57480eb67180a16e81c8fe84f05cd Mon Sep 17 00:00:00 2001 From: xianbo Date: Wed, 11 Dec 2013 07:56:42 +0800 Subject: [PATCH] add explain to git --- app/views/repositories/show.html.erb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb index a7894ab68..bacba8f94 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' %>