|
|
|
@ -29,79 +29,6 @@
|
|
|
|
|
</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>-->
|
|
|
|
|
|
|
|
|
|
<!--<p>git add *</p>-->
|
|
|
|
|
|
|
|
|
|
<!--<p>git commit -m "first commit"</p>-->
|
|
|
|
|
|
|
|
|
|
<!--<p>git remote add origin-->
|
|
|
|
|
<!--<%#= @repos_url %>-->
|
|
|
|
|
<!--</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 add .</p>-->
|
|
|
|
|
|
|
|
|
|
<!--<p>git commit -m "first commit"</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</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 add .</p>-->
|
|
|
|
|
|
|
|
|
|
<!--<p>git commit -m "first commit"</p>-->
|
|
|
|
|
|
|
|
|
|
<!--<p>git config http.postBuffer 524288000 #设置本地post缓存为500MB</p>-->
|
|
|
|
|
|
|
|
|
|
<!--<p>git push -u trustie branch:branch</p>-->
|
|
|
|
|
|
|
|
|
|
<!--<p><a href="/users/646" class="c_orange">李海</a>提供</p>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!-- 代码库显示 -->
|
|
|
|
|
<% if !@entries.nil? && authorize_for('repositories', 'browse') %>
|
|
|
|
|
<%= render :partial => 'dir_list' %>
|
|
|
|
|
<% end %>
|
|
|
|
|