diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb index 565a31383..5237bbd6d 100644 --- a/app/views/repositories/show.html.erb +++ b/app/views/repositories/show.html.erb @@ -22,6 +22,7 @@ :class => 'repository' + (repo == @repository ? ' selected' : '') }.join(' | ').html_safe %>)

<% else %> +

版本库请设置好正确的编码方式(utf-8),否则中文对比会出现乱码

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

git init

@@ -30,11 +31,21 @@

git remote add origin <%= @repos_url%>

git push -u origin master:master

-

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

+

已经有本地库,还没有配置远程地址,打开命令行执行如下:

git remote add origin <%= @repos_url%>

+

git add .

+

git commit -m "first commit"

git push -u origin master:matser

+ +

从网上获取别人的开源版本库,转交到trustie网站上,打开命令行执行如下:

+
+

git remote add trustie <%= @repos_url%>

+

git add .

+

git commit -m "first commit"

+

git push -u trustie master:matser

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