修改版本库的提示
This commit is contained in:
parent
4f5eff09c8
commit
762386b56d
|
@ -22,6 +22,7 @@
|
|||
:class => 'repository' + (repo == @repository ? ' selected' : '')
|
||||
}.join(' | ').html_safe %>)</p>
|
||||
<% else %>
|
||||
<h3>版本库请设置好正确的编码方式(utf-8),否则中文对比会出现乱码</h3>
|
||||
<h3>建立版本库文件夹,打开命令行执行如下:</h3>
|
||||
<div class="repos_explain">
|
||||
<p>git init</p>
|
||||
|
@ -30,11 +31,21 @@
|
|||
<p>git remote add origin <%= @repos_url%></p>
|
||||
<p>git push -u origin master:master</p>
|
||||
</div>
|
||||
<h3>已经有本地库,打开命令行执行如下:</h3>
|
||||
<h3>已经有本地库,还没有配置远程地址,打开命令行执行如下:</h3>
|
||||
<div class="repos_explain">
|
||||
<p>git remote add origin <%= @repos_url%></p>
|
||||
<p>git add .</p>
|
||||
<p>git commit -m "first commit"</p>
|
||||
<p>git push -u origin master:matser</p>
|
||||
</div>
|
||||
</h3>
|
||||
<h3>从网上获取别人的开源版本库,转交到trustie网站上,打开命令行执行如下:</h3>
|
||||
<div class="repos_explain">
|
||||
<p>git remote add trustie <%= @repos_url%></p>
|
||||
<p>git add .</p>
|
||||
<p>git commit -m "first commit"</p>
|
||||
<p>git push -u trustie master:matser</p>
|
||||
</div>
|
||||
<% end %>
|
||||
</h3>
|
||||
<% if !@entries.nil? && authorize_for('repositories', 'browse') %>
|
||||
|
|
Loading…
Reference in New Issue