add explain to git

This commit is contained in:
xianbo 2013-12-11 07:56:42 +08:00
parent 23785999f1
commit caeee11eab
1 changed files with 7 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<h3>
<%= render :partial => 'breadcrumbs',
:locals => { :path => @path, :kind => 'dir', :revision => @rev } %>
<div style="font-size:11px;">
<div style="font-size:15px;">
<%if @repository.type.to_s=="Repository::Git"%>
<%= @repos_url%>
<%else %>
@ -24,7 +24,7 @@
<% end %>
</h3>
<% if @repository.branches.empty?%>
<h3>进入到需要建立版本库文件夹,打开命令行执行如下</h3>
<h3>建立版本库文件夹,打开命令行执行如下</h3>
<div class="repos_explain">
<p>git init</p>
<p>git add *</p>
@ -32,6 +32,11 @@
<p>git remote add origin <%= @repos_url%></p>
<p>git push -u origin master</p>
</div>
<h3>已经有本地库,打开命令行执行如下:</h3>
<div class="repos_explain">
<p>git remote add origin <%= @repos_url%></p>
<p>git push -u origin master</p>
</div>
<% end %>
<% if !@entries.nil? && authorize_for('repositories', 'browse') %>
<%= render :partial => 'dir_list' %>