去掉版本库git操作指南

tmp
huang 10 years ago
parent f4e2f6c4ff
commit 61061573a7

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

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

Loading…
Cancel
Save