去掉版本库git操作指南

This commit is contained in:
huang 2015-09-29 10:42:17 +08:00
parent f4e2f6c4ff
commit 61061573a7
2 changed files with 78 additions and 78 deletions

View File

@ -29,78 +29,78 @@
</p>
</div>
</div>
<div class="repos_more"><a href="#" id="showgithelp" value="show_help" onclick ="showhelpAndScrollTo('repos_git_more'); " class="c_dblue lh23">展开Git操作指南</a></div>
<div id="repos_git_more">
<br>
<div class=" c_dark f14">
<p color="red">git 克隆和提交的用户名和密码为登录用户名和密码 </p>
<p>项目代码请设置好正确的编码方式utf-8否则中文会出现乱码。</p>
<p>通过cmd命令提示符进入代码对应文件夹的根目录
如果是首次提交代码,执行如下命令:</p>
</div>
<div class="repos_explain">
<p>git init</p>
<!--<div class="repos_more"><a href="#" id="showgithelp" value="show_help" onclick ="showhelpAndScrollTo('repos_git_more'); " class="c_dblue lh23">展开Git操作指南</a></div>-->
<!--<div id="repos_git_more">-->
<!--<br>-->
<!--<div class=" c_dark f14">-->
<!--<p color="red">git 克隆和提交的用户名和密码为登录用户名和密码 </p>-->
<!--<p>项目代码请设置好正确的编码方式utf-8否则中文会出现乱码。</p>-->
<!--<p>通过cmd命令提示符进入代码对应文件夹的根目录-->
<!--如果是首次提交代码,执行如下命令:</p>-->
<!--</div>-->
<!--<div class="repos_explain">-->
<!--<p>git init</p>-->
<p>git add *</p>
<!--<p>git add *</p>-->
<p>git commit -m "first commit"</p>
<!--<p>git commit -m "first commit"</p>-->
<p>git remote add origin
<%= @repos_url %>
</p>
<!--<p>git remote add origin-->
<!--<%#= @repos_url %>-->
<!--</p>-->
<p>git config http.postBuffer 524288000 #设置本地post缓存为500MB</p>
<!--<p>git config http.postBuffer 524288000 #设置本地post缓存为500MB</p>-->
<p>git push -u origin master</p>
</div>
<!--repos_explain end-->
<div class="c_dark f14">
<p>已经有本地库,还没有配置远程地址,打开命令行执行如下:</p>
</div>
<div class="repos_explain">
<p>git remote add origin <%= @repos_url %></p>
<!--<p>git push -u origin master</p>-->
<!--</div>-->
<!--&lt;!&ndash;repos_explain end&ndash;&gt;-->
<!--<div class="c_dark f14">-->
<!--<p>已经有本地库,还没有配置远程地址,打开命令行执行如下:</p>-->
<!--</div>-->
<!--<div class="repos_explain">-->
<!--<p>git remote add origin <%#= @repos_url %></p>-->
<p>git add .</p>
<!--<p>git add .</p>-->
<p>git commit -m "first commit"</p>
<!--<p>git commit -m "first commit"</p>-->
<p>git config http.postBuffer 524288000 #设置本地post缓存为500MB</p>
<!--<p>git config http.postBuffer 524288000 #设置本地post缓存为500MB</p>-->
<p>git push -u origin master</p>
</div>
<!--repos_explain end-->
<div class="c_dark f14">
<p>已有远程地址,创建一个远程分支,并切换到该分支,打开命令行执行如下:</p>
</div>
<div class="repos_explain">
<p>git clone <%= @repos_url %></p>
<!--<p>git push -u origin master</p>-->
<!--</div>-->
<!--&lt;!&ndash;repos_explain end&ndash;&gt;-->
<!--<div class="c_dark f14">-->
<!--<p>已有远程地址,创建一个远程分支,并切换到该分支,打开命令行执行如下:</p>-->
<!--</div>-->
<!--<div class="repos_explain">-->
<!--<p>git clone <%#= @repos_url %></p>-->
<p>git push</p>
<!--<p>git push</p>-->
<p>git checkout -b branch_name</p>
<!--<p>git checkout -b branch_name</p>-->
<p>git push origin branch_name</p>
</div>
<!--repos_explain end-->
<div class="c_dark f14">
<p>从网上获取别人的开源版本库转交到trustie网站上打开命令行执行如下</p>
</div>
<div class="repos_explain">
<p>git remote add trustie
<%= @repos_url %>
</p>
<!--<p>git push origin branch_name</p>-->
<!--</div>-->
<!--&lt;!&ndash;repos_explain end&ndash;&gt;-->
<!--<div class="c_dark f14">-->
<!--<p>从网上获取别人的开源版本库转交到trustie网站上打开命令行执行如下</p>-->
<!--</div>-->
<!--<div class="repos_explain">-->
<!--<p>git remote add trustie-->
<!--<%#= @repos_url %>-->
<!--</p>-->
<p>git add .</p>
<!--<p>git add .</p>-->
<p>git commit -m "first commit"</p>
<!--<p>git commit -m "first commit"</p>-->
<p>git config http.postBuffer 524288000 #设置本地post缓存为500MB</p>
<!--<p>git config http.postBuffer 524288000 #设置本地post缓存为500MB</p>-->
<p>git push -u trustie branch:branch</p>
<!--<p>git push -u trustie branch:branch</p>-->
<p><a href="/users/646" class="c_orange">李海</a>提供</p>
</div>
</div>
<!--<p><a href="/users/646" class="c_orange">李海</a>提供</p>-->
<!--</div>-->
<!--</div>-->
<!-- 代码库显示 -->
<% if !@entries.nil? && authorize_for('repositories', 'browse') %>
<%= render :partial => 'dir_list' %>

View File

@ -96,29 +96,29 @@ function show_more_reply1(contentid, id2, id3) {
}
}
//项目版本库git帮助文档显示
function showhelpAndScrollTo(id) {
$('#' + id).toggle();
if(cookieget("repositories_visiable") == "true")
{
cookiesave("repositories_visiable", false,'','','');
}
else
{
cookiesave("repositories_visiable", true,'','','');
}
var information = $("#showgithelp");
var val = information.attr("value");
if(val=="show_help")
{
$("#showgithelp").text("收起Git操作指南");
information.attr("value", "hide_help");
}
else
{
$("#showgithelp").text("展开Git操作指南");
information.attr("value", "show_help");
}
}
//function showhelpAndScrollTo(id) {
// $('#' + id).toggle();
// if(cookieget("repositories_visiable") == "true")
// {
// cookiesave("repositories_visiable", false,'','','');
// }
// else
// {
// cookiesave("repositories_visiable", true,'','','');
// }
// var information = $("#showgithelp");
// var val = information.attr("value");
// if(val=="show_help")
// {
// $("#showgithelp").text("收起Git操作指南");
// information.attr("value", "hide_help");
// }
// else
// {
// $("#showgithelp").text("展开Git操作指南");
// information.attr("value", "show_help");
// }
//}
function showhelpAndScrollToMessage(id, id1, count) {
$('#' + id).toggle();
if(cookieget("repositories_visiable") == "true")